diff --git a/lib/node.js b/lib/node.js index dda05cc2f60..3aae34b0303 100644 --- a/lib/node.js +++ b/lib/node.js @@ -2216,6 +2216,26 @@ declare module "zlib" { declare module "assert" { declare class AssertionError extends Error {} + declare type AssertStrict = { + (value: any, message?: string): void; + ok(value: any, message?: string): void; + fail(message?: string | Error): void; + // deprecated since v10.15 + fail(actual: any, expected: any, message: string, operator: string): void; + equal(actual: any, expected: any, message?: string): void; + notEqual(actual: any, expected: any, message?: string): void; + deepEqual(actual: any, expected: any, message?: string): void; + notDeepEqual(actual: any, expected: any, message?: string): void; + throws( + block: Function, + error?: Function | RegExp | (err: any) => boolean, + message?: string + ): void; + doesNotThrow(block: Function, message?: string): void; + ifError(value: any): void; + AssertionError: typeof AssertionError; + strict: AssertStrict; + } declare module.exports: { (value: any, message?: string): void; ok(value: any, message?: string): void; @@ -2238,6 +2258,7 @@ declare module "assert" { doesNotThrow(block: Function, message?: string): void; ifError(value: any): void; AssertionError: typeof AssertionError; + strict: AssertStrict; } }