Add missing limit option to ncp definition (#38883)

This commit is contained in:
Benoit Lemaire
2019-10-09 16:11:39 -07:00
committed by Armando Aguirre
parent ab9a3da03f
commit 97af79ffcc
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
// Type definitions for ncp v2.0.0
// Project: https://github.com/AvianFlu/ncp
// Definitions by: Bart van der Schoor <https://github.com/bartvds>
// Benoit Lemaire <https://github.com/belemaire>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -15,4 +16,5 @@ interface Options {
dereference?: boolean;
stopOnErr?: boolean;
errs?: NodeJS.WritableStream;
limit?: number;
}
+3
View File
@@ -26,6 +26,9 @@ opts = {
opts = {
errs: new stream.Writable()
};
opts = {
limit: 512
};
ncp.ncp('foo', 'bar', (err: Error) => {