1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | import { Options } from 'node-sass';
|
11 |
|
12 | interface SassResults {
|
13 | css: string;
|
14 | map: string;
|
15 | stats: {
|
16 | entry: string;
|
17 | start: Date;
|
18 | end: Date;
|
19 | duration: number;
|
20 | includedFiles: string[];
|
21 | }
|
22 | }
|
23 |
|
24 | interface SassOptions extends Options {
|
25 | success?: ((results: SassResults) => any) | undefined;
|
26 | error?: ((err: Error) => any) | undefined;
|
27 | imagePaths?: string[] | undefined;
|
28 | }
|
29 |
|
30 | interface GulpSassOptions extends SassOptions {
|
31 | errLogToConsole?: boolean | undefined;
|
32 | onSuccess?: ((css: string) => any) | undefined;
|
33 | onError?: ((err: Error) => any) | undefined;
|
34 | sync?: boolean | undefined;
|
35 | }
|
36 |
|
37 | interface GulpSass {
|
38 | (opts?: GulpSassOptions): NodeJS.ReadWriteStream;
|
39 | logError(error?: string): void;
|
40 | sync(options?: GulpSassOptions): NodeJS.ReadWriteStream;
|
41 | }
|
42 |
|
43 | type Compiler = any;
|
44 |
|
45 | interface GulpSassFactory {
|
46 | (compiler: Compiler): GulpSass
|
47 | }
|
48 |
|
49 | declare var _tmp: GulpSassFactory;
|
50 | export = _tmp;
|
51 |
|
\ | No newline at end of file |