mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Add Options.
This commit is contained in:
9
types/ejs/index.d.ts
vendored
9
types/ejs/index.d.ts
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user