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