mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added new types for domelementtype * Updating PULL_REQUEST_TEMPLATE.md * Revert changes to .github/PULL_REQUEST_TEMPLATE.md
46 lines
935 B
TypeScript
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;
|
|
}
|