diff2html/typings/wontache/wontache.d.ts
2022-09-14 14:29:49 +01:00

13 lines
316 B
TypeScript

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;
}
}