From c75fbbbd811b8a5eeb48c746f8da03a121ce9d21 Mon Sep 17 00:00:00 2001 From: Artymaury <22880181+ArtyMaury@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:32:37 +0100 Subject: [PATCH] fix: add generic to expect.objectContaining type (#3053) --- packages/vitest/src/types/global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/types/global.ts b/packages/vitest/src/types/global.ts index 3e7c3936bfab..51f238aa7968 100644 --- a/packages/vitest/src/types/global.ts +++ b/packages/vitest/src/types/global.ts @@ -59,7 +59,7 @@ declare global { interface AsymmetricMatchersContaining { stringContaining(expected: string): any - objectContaining(expected: any): any + objectContaining(expected: T): any arrayContaining(expected: Array): any stringMatching(expected: string | RegExp): any }