From 62344473bfd9b355c1085ea3ef3633aa19024060 Mon Sep 17 00:00:00 2001 From: TrickyPi <530257315@qq.com> Date: Sun, 20 Feb 2022 18:26:24 +0800 Subject: [PATCH] fix: change the return type of expect.any(...) and expect.anything(...) to any --- 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