diff --git a/types/stack-utils/index.d.ts b/types/stack-utils/index.d.ts index f29a42298a..3427e35067 100644 --- a/types/stack-utils/index.d.ts +++ b/types/stack-utils/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stack-utils 1.0 +// Type definitions for stack-utils 2.0 // Project: https://github.com/tapjs/stack-utils#readme // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -21,6 +21,7 @@ declare class StackUtils { declare namespace StackUtils { interface Options { internals?: RegExp[]; + ignoredPackages?: string[]; cwd?: string; wrapCallSite?(callSite: CallSite): CallSite; } diff --git a/types/stack-utils/stack-utils-tests.ts b/types/stack-utils/stack-utils-tests.ts index 05d1a96aa5..8dcc8139ab 100644 --- a/types/stack-utils/stack-utils-tests.ts +++ b/types/stack-utils/stack-utils-tests.ts @@ -1,7 +1,7 @@ /// import StackUtils = require('stack-utils'); -const stack = new StackUtils({cwd: process.cwd(), internals: StackUtils.nodeInternals()}); +const stack = new StackUtils({cwd: process.cwd(), internals: StackUtils.nodeInternals(), ignoredPackages: ["foobar"]}); const stackStr = new Error().stack; if (stackStr) {