node-json2html
Version:
json2html - HTML templating in pure javascript
15 lines (14 loc) • 535 B
TypeScript
interface componentMethods {
add: (name:object|string, template:object) => void,
get: (name:string) => object,
}
interface iHTMLInterface {
append: (ihtml:iHTMLInterface) => iHTMLInterface;
appendHTML: (html:string) => iHTMLInterface;
toJSON: () => object;
}
export function render(json: object|string, template: object, options?: object): string;
export function toText(html:string): string;
export const component: componentMethods;
export const version: string;
export const iHTML: iHTMLInterface;