UNPKG

html-minifier

Version:

Highly effective, super-configurable, well-tested web page minifier

28 lines • 857 B
export type HTMLParserHandler = { start?: Function; end?: Function; chars?: Function; comment?: Function; processingInstruction?: Function; doctype?: Function; strayEnd?: Function; parseError?: Function | undefined; continueOnParseError?: boolean | undefined; partialMarkup?: boolean | undefined; noQuirksMode?: boolean | undefined; wantsNextTag?: boolean | undefined; selfClosingSlash?: boolean | undefined; customAttrSurround?: RegExp[][] | undefined; customAttrAssign?: RegExp[] | undefined; }; export declare class HTMLParser { html: string; handler: HTMLParserHandler; /** * @param {string} html * @param {HTMLParserHandler} handler */ constructor(html: string, handler: HTMLParserHandler); parse(): Promise<void>; } //# sourceMappingURL=htmlparser.d.ts.map