1.0.4 • Published 6 months ago
@types/html2json v1.0.4
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
// Type definitions for html2json 1.0
// Project: https://github.com/jxck/html2json
// Definitions by: YEK-PLUS <https://github.com/YEK-PLUS>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Node {
node: 'root' | 'element' | 'text' | 'comment';
tag?: string;
child?: Node[] | Node;
text?: string;
attrs?: { [key: string]: string | string[] };
}
export function html2json(html: string): Node;
export function json2html(json: Node): string;
Additional Details
- Last updated: Fri, 06 May 2022 17:01:40 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by YEK-PLUS.