html-dom-parser
Version:
HTML to DOM parser.
14 lines • 580 B
TypeScript
import type { DomHandlerOptions } from 'domhandler';
import type { Comment, Element, ProcessingInstruction, Text } from 'domhandler';
import type { ParserOptions } from 'htmlparser2';
export type { Comment, Element, ProcessingInstruction, Text };
export type DOMNode = Comment | Element | ProcessingInstruction | Text;
export interface TrustedTypePolicy {
createHTML(input: string): {
toString(): string;
};
}
export type HTMLDOMParserOptions = ParserOptions & DomHandlerOptions & {
trustedTypePolicy?: TrustedTypePolicy;
};
//# sourceMappingURL=types.d.ts.map