forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathncp.d.ts
19 lines (16 loc) · 689 Bytes
/
ncp.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Type definitions for ncp v0.5.1
// Project: https://github.com/AvianFlu/ncp
// Definitions by: Bart van der Schoor <https://github.com/bartvds/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'ncp' {
function ncp (source: string, destination: string, callback: (err: Error) => void): void;
function ncp (source: string, destination: string, options: Options, callback: (err: Error) => void): void;
interface Options {
filter? : RegExp;
transform? : (read: NodeJS.ReadableStream, write: NodeJS.WritableStream) => void;
clobber? : boolean;
stopOnErr? : boolean;
errs? : NodeJS.WritableStream;
}
}