From 1bdcc212e1fde6776e69c9191253bc27404c8855 Mon Sep 17 00:00:00 2001 From: Jesse van Assen Date: Tue, 7 Mar 2023 19:01:49 +0100 Subject: [PATCH] fix(types): use `any` as default value for TArgs in vi.fn() (#2947) --- packages/spy/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/spy/src/index.ts b/packages/spy/src/index.ts index b855f8c7b73e..45e639d9be01 100644 --- a/packages/spy/src/index.ts +++ b/packages/spy/src/index.ts @@ -315,7 +315,7 @@ function enhanceSpy( return stub as any } -export function fn(): Mock +export function fn(): Mock export function fn( implementation: (...args: TArgs) => R ): Mock