DefinitelyTyped/htmltojsx/htmltojsx.d.ts
2015-07-03 13:12:35 +10:00

18 lines
534 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/borisyankov/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;
}