mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Add missing limit option to ncp definition (#38883)
This commit is contained in:
committed by
Armando Aguirre
parent
ab9a3da03f
commit
97af79ffcc
Vendored
+2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,9 @@ opts = {
|
||||
opts = {
|
||||
errs: new stream.Writable()
|
||||
};
|
||||
opts = {
|
||||
limit: 512
|
||||
};
|
||||
|
||||
ncp.ncp('foo', 'bar', (err: Error) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user