From 383656e1963edb2803519eec269bbc22777b0a04 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 return type of expect.any(...) to any --- packages/vitest/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vitest/src/index.ts b/packages/vitest/src/index.ts index ca8732ff8c8b..144a2a6df5e7 100644 --- a/packages/vitest/src/index.ts +++ b/packages/vitest/src/index.ts @@ -1,5 +1,5 @@ import type { Plugin as PrettyFormatPlugin } from 'pretty-format' -import type { Any, Anything } from './integrations/chai/jest-asymmetric-matchers' +import type { Anything } from './integrations/chai/jest-asymmetric-matchers' import type { MatcherState, MatchersObject } from './integrations/chai/types' import type { Constructable, InlineConfig } from './types' @@ -54,7 +54,7 @@ declare global { assertions(expected: number): void hasAssertions(): void anything(): Anything - any(constructor: unknown): Any + any(constructor: unknown): any addSnapshotSerializer(plugin: PrettyFormatPlugin): void getState(): MatcherState setState(state: Partial): void