Skip to content

Commit

Permalink
fix: add generic to expect.objectContaining type (vitest-dev#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyMaury authored and AriPerkkio committed Mar 28, 2023
1 parent 07d54d6 commit c81b277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/types/global.ts
Original file line number Diff line number Diff line change
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 c81b277

Please sign in to comment.