declarations
Version:
[](https://www.npmjs.com/package/declarations)
18 lines (16 loc) • 538 B
TypeScript
// Type definitions for htmltojsx
// Project: https://www.npmjs.com/package/htmltojsx
// Definitions by: Basarat Ali Syed <https://github.com/basarat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'htmltojsx' {
class HTMLtoJSX {
constructor(options?: {
createClass?: boolean;
outputClassName?: string;
/** as a string e.g. ' ' or '\t' */
indent?: string;
});
convert(html: string): string;
}
export = HTMLtoJSX;
}