mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
891 B
TypeScript
34 lines
891 B
TypeScript
// Type definitions for gulp-sourcemaps
|
|
// Project: https://github.com/floridoo/gulp-sourcemaps
|
|
// Definitions by: Asana <https://asana.com>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node"/>
|
|
|
|
|
|
interface InitOptions {
|
|
loadMaps?: boolean;
|
|
debug?: boolean;
|
|
}
|
|
|
|
interface WriteMapper {
|
|
(file: string): string;
|
|
}
|
|
|
|
interface CloneOptions {
|
|
contents?: boolean;
|
|
deep?: boolean;
|
|
}
|
|
|
|
interface WriteOptions {
|
|
addComment?: boolean;
|
|
includeContent?: boolean;
|
|
sourceRoot?: string | WriteMapper;
|
|
sourceMappingURLPrefix?: string | WriteMapper;
|
|
clone?: boolean | CloneOptions;
|
|
}
|
|
|
|
export declare function init(opts?: InitOptions): NodeJS.ReadWriteStream;
|
|
export declare function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream;
|
|
export declare function write(opts?: WriteOptions): NodeJS.ReadWriteStream;
|