Skip to content

Commit

Permalink
fix: objectContaining typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyMaury committed Mar 21, 2023
1 parent 051bb65 commit f551ebf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/vitest/src/types/global.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Plugin as PrettyFormatPlugin } from 'pretty-format'
import type { MatchersObject } from '@vitest/expect'
import type { Plugin as PrettyFormatPlugin } from 'pretty-format'
import type SnapshotState from '../integrations/snapshot/port/state'
import type { BenchmarkResult } from './benchmark'
import type { MatcherState } from './chai'
import type { Constructable, UserConsoleLog } from './general'
import type { VitestEnvironment } from './config'
import type { BenchmarkResult } from './benchmark'
import type { Constructable, UserConsoleLog } from './general'

type Promisify<O> = {
[K in keyof O]: O[K] extends (...args: infer A) => infer R
Expand Down 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 Expand Up @@ -141,4 +141,5 @@ declare global {
}
}

export {}
export { }

0 comments on commit f551ebf

Please sign in to comment.