UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

20 lines (17 loc) 789 B
/// <reference path="../../../globals.d.ts" /> declare module goog.dom { /** * Constants for the nodeType attribute in the Node interface. * * These constants match those specified in the Node interface. These are * usually present on the Node object in recent browsers, but not in older * browsers (specifically, early IEs) and thus are given here. * * In some browsers (early IEs), these are not defined on the Node object, * so they are provided here. * * See http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247 * @enum {number} */ enum NodeType { ELEMENT, ATTRIBUTE, TEXT, CDATA_SECTION, ENTITY_REFERENCE, ENTITY, PROCESSING_INSTRUCTION, COMMENT, DOCUMENT, DOCUMENT_TYPE, DOCUMENT_FRAGMENT, NOTATION } }