forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-jade.d.ts
87 lines (72 loc) · 2.22 KB
/
gulp-jade.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Type definitions for gulp-jade
// Project: https://github.com/phated/gulp-jade
// Definitions by: berwyn <https://github.com/berwyn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "gulp-jade" {
function GulpJade(params?: GulpJade.Params): any;
namespace GulpJade {
interface Params {
/*******
* JADE API OPTIONS
*******/
/**
* If the doctype is not specified as part of the
* template, you can specify it here. It is sometimes
* useful to get self-closing tags and remove mirroring
* of boolean attributes.
*/
doctype?: string;
/**
* Adds whitespace to the resulting html to make it
* easier for a human to read using ' ' as indentation.
* If a string is specified, that will be used as
* indentation instead (e.g. '\t').
*/
pretty?: boolean|string;
/**
* Use a self namespace to hold the locals (false by default)
*/
self?: boolean;
/**
* If set to true, the tokens and function body is logged
* to stdout
*/
debug?: boolean;
/**
* If set to true, the function source will be included in the
* compiled template for better error messages (sometimes useful
* in development). It is enabled by default unless used with
* express in production mode.
*/
compileDebug?:boolean;
/**
* If set to true, compiled functions are cached. filename
* must be set as the cache key.
*/
cache?:boolean;
/*******
* GULP-JADE OPTIONS
*******/
/**
* Used to set a version of jade other than this library's
* dependency, or to customise filters.
*/
jade?: any;
/**
* Compile to JS instead of HTML.
*/
client?: boolean;
/**
* Locals to be used while parsing jade files. Takes
* precedence over data.
*/
locals?: any;
/**
* Data to be used while parsing jade files. Has lower
* precedence than locals.
*/
data?: any;
}
}
export = GulpJade;
}