mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #45620 @types/assert: Update definitions to version 1.5 by @curtisman
* @types/assert: Add missing assert.strict type * Add missing notDeepStrictEqual
This commit is contained in:
parent
bdba62e896
commit
e129e83091
@ -13,3 +13,5 @@ assert.throws(
|
||||
);
|
||||
|
||||
assert['fail'](true, true, 'works like a charm');
|
||||
|
||||
assert.strict; // $ExpectType typeof assert
|
||||
|
||||
6
types/assert/index.d.ts
vendored
6
types/assert/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for commonjs-assert 1.4
|
||||
// Type definitions for commonjs-assert 1.5
|
||||
// Project: https://github.com/browserify/commonjs-assert, https://github.com/defunctzombie/commonjs-assert
|
||||
// Definitions by: Nico Gallinal <https://github.com/nicoabie>
|
||||
// Linus Unnebäck <https://github.com/LinusU>
|
||||
@ -22,6 +22,8 @@ declare namespace assert {
|
||||
|
||||
function deepStrictEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
function strictEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
function notStrictEqual(actual: any, expected: any, message?: string): void;
|
||||
@ -54,6 +56,8 @@ declare namespace assert {
|
||||
stackStartFunction?: () => void;
|
||||
});
|
||||
}
|
||||
|
||||
const strict: typeof assert;
|
||||
}
|
||||
|
||||
export = assert;
|
||||
|
||||
@ -57,3 +57,5 @@ assert['fail'](true, true, 'works like a charm');
|
||||
assert.deepStrictEqual(a, { b: 2 });
|
||||
a; // $ExpectType { b: number; }
|
||||
}
|
||||
|
||||
assert.strict; // $ExpectType typeof assert
|
||||
|
||||
2
types/assert/ts3.7/index.d.ts
vendored
2
types/assert/ts3.7/index.d.ts
vendored
@ -53,6 +53,8 @@ declare namespace assert {
|
||||
stackStartFunction?: () => void;
|
||||
});
|
||||
}
|
||||
|
||||
const strict: typeof assert;
|
||||
}
|
||||
|
||||
export = assert;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user