From 311943f537e31069b923d78b775aede515dbee5f Mon Sep 17 00:00:00 2001 From: TrickyPi <33021497+TrickyPi@users.noreply.github.com> Date: Mon, 21 Feb 2022 13:20:02 +0800 Subject: [PATCH] fix: change return type of expect.any(...) to any (#815) --- packages/vitest/src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/vitest/src/index.ts b/packages/vitest/src/index.ts index ca8732ff8c8b..1662f75f6a53 100644 --- a/packages/vitest/src/index.ts +++ b/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' @@ -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): void