Files
renovate/lib/util/html.ts
T
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00

13 lines
334 B
TypeScript

import type { HTMLElement, Options } from 'node-html-parser';
import { parse as _parse } from 'node-html-parser';
export type { HTMLElement, Options };
export function parse(html: string, config?: Partial<Options>): HTMLElement {
if (typeof config !== 'undefined') {
return _parse(html, config);
}
return _parse(html);
}