forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.d.ts
50 lines (43 loc) · 935 Bytes
/
dot.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Type definitions for doT v1.0.1
// Project: https://github.com/olado/doT
// Definitions by: ZombieHunter <https://github.com/ZombieHunter>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare var doT: doT.doTStatic;
declare module doT {
interface doTStatic {
/**
* Version number
*/
version: string;
/**
* Default template settings
*/
templateSettings: TemplateSettings;
/**
* Compile template
*/
template(tmpl: string, c?: TemplateSettings, def?: Object): Function;
/**
* For express
*/
compile(tmpl: string, def?: Object): Function;
}
interface TemplateSettings {
evaluate: RegExp;
interpolate: RegExp;
encode: RegExp;
use: RegExp;
useParams: RegExp;
define: RegExp;
defineParams: RegExp;
conditional: RegExp;
iterate: RegExp;
varname: string;
strip: boolean;
append: boolean;
selfcontained: boolean;
}
}
interface String {
encodeHTML(): string;
}