forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-sass.d.ts
54 lines (48 loc) · 1.41 KB
/
gulp-sass.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
// Type definitions for gulp-sass
// Project: https://github.com/dlmanning/gulp-sass
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
declare module "gulp-sass" {
interface SassResults {
css: string;
map: string;
stats: {
entry: string;
start: Date;
end: Date;
duration: number;
includedFiles: string[];
}
}
interface SassOptions {
file?: string;
data?: string;
success?: (results: SassResults) => any;
error?: (err: Error) => any;
includePaths?: string[];
imagePaths?: string[];
indentedSyntax?: boolean;
omitSourceMapUrl?: boolean;
outFile?: string;
outputStyle?: string;
precision?: number;
sourceComments?: boolean;
sourceMap?: boolean | string;
sourceMapEmbed?: boolean;
sourceMapContents?: boolean;
}
interface Options extends SassOptions {
errLogToConsole?: boolean;
onSuccess?: (css: string) => any;
onError?: (err: Error) => any;
sync?: boolean;
}
interface Sass {
(opts?: Options): NodeJS.ReadWriteStream;
logError(error?: string): void;
sync(options?: Options): NodeJS.ReadWriteStream;
}
var _tmp: Sass;
export = _tmp;
}