1.0.4 • Published 6 months ago

@types/html2json v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

2 years ago

1.0.0

2 years ago