Skip to content

Commit 69d2cc9

Browse files
authoredMar 23, 2023
fix: add generic to expect.objectContaining type (#3053)
1 parent 8ac829e commit 69d2cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vitest/src/types/global.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ declare global {
5959

6060
interface AsymmetricMatchersContaining {
6161
stringContaining(expected: string): any
62-
objectContaining(expected: any): any
62+
objectContaining<T = any>(expected: T): any
6363
arrayContaining<T = unknown>(expected: Array<T>): any
6464
stringMatching(expected: string | RegExp): any
6565
}

0 commit comments

Comments
 (0)
Please sign in to comment.