forked from gulp-community/gulp-pug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
42 lines (35 loc) · 1002 Bytes
/
index.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
import { Transform } from "stream";
import { Options as PugOptions } from "pug";
/**
* Returns a stream that compiles Vinyl files as Pug.
*/
declare function GulpPug(options?: GulpPug.Options): Transform;
declare namespace GulpPug {
/**
* Any options from [Pug's API](https://pugjs.org/api/reference.html) in addition to `pug`'s own options.
*/
interface Options extends PugOptions {
/**
* Locals to compile the Pug with. You can also provide locals through the `data` field of the file object,
* e.g. with [`gulp-data`](https://npmjs.com/gulp-data). They will be merged with `opts.locals`.
*/
locals?: any;
/**
* Same as `opts.locals`.
*/
data?: any;
/**
* Compile Pug to JavaScript code.
*/
client?: boolean;
/**
* A custom instance of Pug for `gulp-pug` to use.
*/
pug?: any;
/**
* Display name of file from stream that is being compiled.
*/
verbose?: boolean;
}
}
export = GulpPug;