Installation
npm install --save @types/html2json
Summary
This package contains type definitions for html2json (https://github.com/jxck/html2json).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html2json.
index.d.ts
export interface Node {
node: "root" | "element" | "text" | "comment";
tag?: string;
child?: Node[] | Node;
text?: string;
attr?: { [key: string]: string | string[] };
}
export function html2json(html: string): Node;
export function json2html(json: Node): string;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by YEK-PLUS.