1 kBTypeScriptView Raw
1/// <reference types="node"/>
2
3import { Options } from "node-sass";
4
5interface 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
17interface SassOptions extends Options {
18 success?: ((results: SassResults) => any) | undefined;
19 error?: ((err: Error) => any) | undefined;
20 imagePaths?: string[] | undefined;
21}
22
23interface 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
30interface GulpSass {
31 (opts?: GulpSassOptions): NodeJS.ReadWriteStream;
32 logError(error?: string): void;
33 sync(options?: GulpSassOptions): NodeJS.ReadWriteStream;
34}
35
36type Compiler = any;
37
38interface GulpSassFactory {
39 (compiler: Compiler): GulpSass;
40}
41
42declare var _tmp: GulpSassFactory;
43export = _tmp;
44
\No newline at end of file