UNPKG

html-dom-parser

Version:
16 lines (15 loc) 744 B
import { Comment as Comment$1, DomHandlerOptions, Element as Element$1, ProcessingInstruction as ProcessingInstruction$1, Text as Text$1 } from "domhandler"; import { ParserOptions } from "htmlparser2"; //#region src/types.d.ts type DOMNode = Comment$1 | Element$1 | ProcessingInstruction$1 | Text$1; interface TrustedTypePolicy { createHTML(input: string): { toString(): string; }; } type HTMLDOMParserOptions = ParserOptions & DomHandlerOptions & { trustedTypePolicy?: TrustedTypePolicy; }; //#endregion export { type Comment$1 as Comment, DOMNode, type Element$1 as Element, HTMLDOMParserOptions, type ProcessingInstruction$1 as ProcessingInstruction, type Text$1 as Text, TrustedTypePolicy }; //# sourceMappingURL=types.d.mts.map