DefinitelyTyped/types/domelementtype/index.d.ts
Johan Davidsson 813999bd2b Add type definition for domelementtype (#33854)
* Added new types for domelementtype

* Updating PULL_REQUEST_TEMPLATE.md

* Revert changes to .github/PULL_REQUEST_TEMPLATE.md
2019-03-13 16:53:11 -07:00

46 lines
935 B
TypeScript

// Type definitions for domelementtype 1.3
// Project: https://github.com/fb55/domelementtype#readme
// Definitions by: Johan Davidsson <https://github.com/johandavidson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export namespace DomElementType {
/***
* Text
*/
const Text = "text";
/***
* <? ... ?>
*/
const Directive = "directive";
/***
* <!-- ... -->
*/
const Comment = "comment";
/***
* <script> tags
*/
const Script = "script";
/***
* <style> tags
*/
const Style = "style";
/***
* Any tag
*/
const Tag = "tag";
/***
* <![CDATA[ ... ]]>
*/
const CDATA = "cdata";
/***
* <!DOCTYPE ... >
*/
const Doctype = "doctype";
/***
* Checks whether element object is a tag
*/
function isTag(elem: { type: string}): boolean;
}