Add Options.

This commit is contained in:
segayuu
2017-11-24 13:07:06 +09:00
parent eeb464569d
commit 996c9c0db3

View File

@@ -22,14 +22,19 @@ export function clearCache(): any;
export type TemplateFunction = (data: Data) => any;
export interface Options {
cache?: any;
cache?: boolean;
filename?: string;
root?: string;
context?: any;
compileDebug?: boolean;
client?: boolean;
delimiter?: string;
debug?: any;
debug?: boolean;
strict?: boolean;
_with?: boolean;
localsName?: string;
rmWhitespace?: boolean;
escape?(str: string): string;
}
export class Template {
constructor(text: string, opts: Options);