Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I think this is actually the best way to fix this
- Loading branch information
1 parent
fe6721a
commit 4b498a0
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
export { NODE_NAMES, NODE_TYPES } from '@utils/constants'; | ||
export const enum NODE_TYPES { | ||
ELEMENT_NODE = 1, | ||
ATTRIBUTE_NODE = 2, | ||
TEXT_NODE = 3, | ||
CDATA_SECTION_NODE = 4, | ||
ENTITY_REFERENCE_NODE = 5, | ||
ENTITY_NODE = 6, | ||
PROCESSING_INSTRUCTION_NODE = 7, | ||
COMMENT_NODE = 8, | ||
DOCUMENT_NODE = 9, | ||
DOCUMENT_TYPE_NODE = 10, | ||
DOCUMENT_FRAGMENT_NODE = 11, | ||
NOTATION_NODE = 12, | ||
} | ||
|
||
export const enum NODE_NAMES { | ||
COMMENT_NODE = '#comment', | ||
DOCUMENT_NODE = '#document', | ||
DOCUMENT_FRAGMENT_NODE = '#document-fragment', | ||
TEXT_NODE = '#text', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters