diff --git a/verror/index.d.ts b/verror/index.d.ts index 75895a1d7d..96f711c9f7 100644 --- a/verror/index.d.ts +++ b/verror/index.d.ts @@ -1,16 +1,19 @@ -// Type definitions for verror v1.9.0 +// Type definitions for verror 1.9 // Project: https://github.com/davepacheco/node-verror // Definitions by: Sven Reglitzki , Maxime Toumi-M // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -type VErrorInfo = { [key: string]: any }; +// tslint:disable-next-line:functional-interfaces +interface VErrorInfo { + [key: string]: any; +} declare interface VErrorOptions { cause?: Error | null | undefined; name?: string; strict?: boolean; - constructorOpt?: Function; + constructorOpt?: (...args: any[]) => void; info?: VErrorInfo; }