aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-17 12:17:05 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-17 12:26:19 -0800
commitf9b573aa89b9567e327c05df71e0483d33a89f80 (patch)
treee9a15b4dd978dc1b00cb304c84b29e28e94c6995
parentbbf8a17bf58292360f323c7d1113057d8e36fb0b (diff)
downloadbun-f9b573aa89b9567e327c05df71e0483d33a89f80.tar.gz
bun-f9b573aa89b9567e327c05df71e0483d33a89f80.tar.zst
bun-f9b573aa89b9567e327c05df71e0483d33a89f80.zip
[bun-types] Add optional param to Bun.deepEquals
-rw-r--r--packages/bun-types/bun.d.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts
index f52a63bfb..6978a10fd 100644
--- a/packages/bun-types/bun.d.ts
+++ b/packages/bun-types/bun.d.ts
@@ -581,8 +581,14 @@ declare module "bun" {
* Fast deep-equality check two objects.
*
* This also powers expect().toEqual in `bun:test`
+ *
*/
- export function deepEquals(a: any, b: any): boolean;
+ export function deepEquals(
+ a: any,
+ b: any,
+ /** @default false */
+ strict?: boolean,
+ ): boolean;
export interface TranspilerOptions {
/**