1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import File = require("vinyl");
|
10 |
|
11 | interface InitOptions {
|
12 | loadMaps?: boolean;
|
13 | debug?: boolean;
|
14 | }
|
15 |
|
16 | interface WriteMapper {
|
17 | (file: string): string;
|
18 | }
|
19 |
|
20 | interface SourceMapMapper {
|
21 | (sourcePath: string, file: File): string;
|
22 | }
|
23 |
|
24 | interface SourceUrlMapper {
|
25 | (file: File): string;
|
26 | }
|
27 |
|
28 | interface MapFilenameMapper {
|
29 | (mapFilePath: string): string;
|
30 | }
|
31 |
|
32 | interface CloneOptions {
|
33 | contents?: boolean;
|
34 | deep?: boolean;
|
35 | }
|
36 |
|
37 | interface WriteOptions {
|
38 | addComment?: boolean;
|
39 | includeContent?: boolean;
|
40 | sourceRoot?: string | WriteMapper;
|
41 | sourceMappingURLPrefix?: string | WriteMapper;
|
42 | sourceMappingURL?: SourceUrlMapper;
|
43 | destPath?: string;
|
44 | mapFile?: MapFilenameMapper;
|
45 | charset?: BufferEncoding;
|
46 | clone?: boolean | CloneOptions;
|
47 | }
|
48 |
|
49 | export declare function init(opts?: InitOptions): NodeJS.ReadWriteStream;
|
50 | export declare function mapSources(mapper?: SourceMapMapper): NodeJS.ReadWriteStream;
|
51 | export declare function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream;
|
52 | export declare function write(opts?: WriteOptions): NodeJS.ReadWriteStream;
|