html-dom-parser
Version:
HTML to DOM parser.
16 lines (15 loc) • 609 B
TypeScript
import { Comment, DomHandlerOptions, Element, ProcessingInstruction, Text } from "domhandler";
import { ParserOptions } from "htmlparser2";
//#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