Skip to content

Commit

Permalink
fix: add generic to expect.objectContaining type (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyMaury committed Mar 23, 2023
1 parent 8ac829e commit 69d2cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/types/global.ts
Expand Up @@ -59,7 +59,7 @@ declare global {

interface AsymmetricMatchersContaining {
stringContaining(expected: string): any
objectContaining(expected: any): any
objectContaining<T = any>(expected: T): any
arrayContaining<T = unknown>(expected: Array<T>): any
stringMatching(expected: string | RegExp): any
}
Expand Down

0 comments on commit 69d2cc9

Please sign in to comment.