mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
43 lines
925 B
TypeScript
43 lines
925 B
TypeScript
// Type definitions for gulp-coffeeify
|
|
// Project: https://github.com/nariyu/gulp-coffeeify
|
|
// Definitions by: Qubo <https://github.com/tkQubo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
|
|
declare namespace coffeeify {
|
|
interface Coffeeify {
|
|
(option?: Option): NodeJS.ReadWriteStream;
|
|
}
|
|
|
|
interface Option {
|
|
options?: {
|
|
debug?: boolean;
|
|
paths?: string[];
|
|
},
|
|
/**
|
|
* [DEPRECATED]: You should use a 'paths' options of browserify.
|
|
*/
|
|
aliases?: Aliases;
|
|
/**
|
|
* [DEPRECATED]
|
|
*/
|
|
transforms?: Transforms;
|
|
}
|
|
|
|
interface Aliases {
|
|
cwd?: string;
|
|
base?: string;
|
|
}
|
|
|
|
interface Transforms {
|
|
ext?: string;
|
|
transform?(data: string): string;
|
|
}
|
|
}
|
|
|
|
declare var coffeeify: coffeeify.Coffeeify;
|
|
|
|
export = coffeeify;
|