npm.io
0.0.33 • Published 2 years ago

@types/htmltojsx

Licence
MIT
Version
0.0.33
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/htmltojsx

Summary

This package contains type definitions for htmltojsx (https://www.npmjs.com/package/htmltojsx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmltojsx.

index.d.ts

declare class HTMLtoJSX {
    constructor(options?: {
        createClass?: boolean | undefined;
        outputClassName?: string | undefined;
        /** as a string e.g. '    ' or '\t' */
        indent?: string | undefined;
    });
    convert(html: string): string;
}
export = HTMLtoJSX;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Basarat Ali Syed.