UNPKG

html-dom-parser

Version:
16 lines 724 B
import { Comment, Element, ProcessingInstruction, Text } from "./node_modules/domhandler/dist/node.js"; import { DomHandlerOptions } from "./node_modules/domhandler/dist/index.js"; import { ParserOptions } from "./node_modules/htmlparser2/dist/Parser.js"; //#region src/types.d.ts type DOMNode = Comment | Element | ProcessingInstruction | Text; interface TrustedTypePolicy { createHTML(input: string): { toString(): string; }; } type HTMLDOMParserOptions = ParserOptions & DomHandlerOptions & { trustedTypePolicy?: TrustedTypePolicy; }; //#endregion export { type Comment, DOMNode, type Element, HTMLDOMParserOptions, type ProcessingInstruction, type Text, TrustedTypePolicy }; //# sourceMappingURL=types.d.ts.map