DefinitelyTyped/types/gulp-useref/index.d.ts
Liam McLoughlin dfd2e2fcc2 Allow specific mangle options to be passed to gulp-uglify, fix incorrectly narrow type in uglify-js (#28085)
* Allow specific mangle options to be passed to gulp-uglify

* Set required TS version

* Update uglify-js v2 too

* Fix tests
2018-10-15 09:58:40 -07:00

25 lines
678 B
TypeScript

// Type definitions for gulp-useref v3.0.0
// Project: https://github.com/jonkemp/gulp-useref
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/// <reference types="node" />
interface Options {
searchPath?: string | string[];
base?: string;
noAssets?: boolean;
noconcat?: boolean;
additionalStreams?: Array<NodeJS.ReadWriteStream>;
transformPath?: (filePath: string) => void;
}
interface Useref {
(options?: Options, ...transformStreams: NodeJS.ReadWriteStream[]): NodeJS.ReadWriteStream;
}
declare var useref: Useref;
export = useref;