Skip to content

Commit

Permalink
fix: change return type of expect.any(...) to any (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Feb 21, 2022
1 parent 7291176 commit 311943f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/vitest/src/index.ts
@@ -1,5 +1,4 @@
import type { Plugin as PrettyFormatPlugin } from 'pretty-format'
import type { Any, Anything } from './integrations/chai/jest-asymmetric-matchers'
import type { MatcherState, MatchersObject } from './integrations/chai/types'
import type { Constructable, InlineConfig } from './types'

Expand Down Expand Up @@ -53,8 +52,8 @@ declare global {
extend(expects: MatchersObject): void
assertions(expected: number): void
hasAssertions(): void
anything(): Anything
any(constructor: unknown): Any
anything(): any
any(constructor: unknown): any
addSnapshotSerializer(plugin: PrettyFormatPlugin): void
getState(): MatcherState
setState(state: Partial<MatcherState>): void
Expand Down

0 comments on commit 311943f

Please sign in to comment.