Files
DefinitelyTyped/ncp/ncp-tests.ts
Ryan Cavanaugh 5859f63fd3 Keep fixing...
2016-05-05 12:38:52 -07:00

31 lines
416 B
TypeScript

import ncp = require('ncp');
import stream = require('stream');
var opts: ncp.Options;
opts = {};
opts = {
filter: /abc/
};
opts = {
transform: (read: NodeJS.ReadableStream, write: NodeJS.WritableStream) => {
}
};
opts = {
clobber: false
};
opts = {
stopOnErr: false
};
opts = {
errs: new stream.Writable()
};
ncp.ncp('foo', 'bar', (err: Error) => {
});
ncp.ncp('foo', 'bar', opts, (err: Error) => {
});