diff2html/typings/wontache/wontache.d.ts

14 lines
316 B
TypeScript
Raw Normal View History

2022-08-12 22:01:54 +00:00
declare module 'wontache' {
export default function compile(template: string | object): CompiledTemplate;
type Partials = {
[_: string]: string | object;
};
type Options = {
partials?: Partials;
};
interface CompiledTemplate {
(data: object, opt?: Options): string;
source: string;
}
}