mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
// Type definitions for gulp-copy v0.0.2
|
|
// Project: https://github.com/klaascuvelier/gulp-copy
|
|
// Definitions by: Arun Aravind <https://github.com/aravindarun>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import through = require("through");
|
|
|
|
/**
|
|
* Copy files to destination and expose those files as source streams for the gulp pipeline.
|
|
*
|
|
* @param outDirectory The name of the destination directory. If this directory
|
|
* does not exist, it will be created atomatically.
|
|
*/
|
|
declare function gulpCopy(outDirectory: string): through.ThroughStream;
|
|
|
|
/**
|
|
* Copy files to destination and expose those files as source streams for the gulp pipeline.
|
|
*
|
|
* @param outDirectory The name of the destination directory. If this directory
|
|
* does not exist, it will be created atomatically.
|
|
* @param options Override values for available settings.
|
|
*/
|
|
declare function gulpCopy(outDirectory: string, options: gulpCopy.GulpCopyOptions): through.ThroughStream;
|
|
|
|
declare namespace gulpCopy {
|
|
export interface GulpCopyOptions {
|
|
/**
|
|
* Specifies the number of parts of the path to be ignored as path prefixes.
|
|
*/
|
|
prefix: number;
|
|
}
|
|
}
|
|
|
|
export = gulpCopy;
|