diff --git a/types/ncp/index.d.ts b/types/ncp/index.d.ts index 30ed4f38b4..dddb7da483 100644 --- a/types/ncp/index.d.ts +++ b/types/ncp/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for ncp v2.0.0 // Project: https://github.com/AvianFlu/ncp // Definitions by: Bart van der Schoor +// Benoit Lemaire // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -15,4 +16,5 @@ interface Options { dereference?: boolean; stopOnErr?: boolean; errs?: NodeJS.WritableStream; + limit?: number; } diff --git a/types/ncp/ncp-tests.ts b/types/ncp/ncp-tests.ts index 008084d0ff..2f30216dc2 100644 --- a/types/ncp/ncp-tests.ts +++ b/types/ncp/ncp-tests.ts @@ -26,6 +26,9 @@ opts = { opts = { errs: new stream.Writable() }; +opts = { + limit: 512 +}; ncp.ncp('foo', 'bar', (err: Error) => {