Skip to content

Commit 1bdcc21

Browse files
authoredMar 7, 2023
fix(types): use any as default value for TArgs in vi.fn() (#2947)
1 parent 819c6cb commit 1bdcc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/spy/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function enhanceSpy<TArgs extends any[], TReturns>(
315315
return stub as any
316316
}
317317

318-
export function fn<TArgs extends any[] = any[], R = any>(): Mock<TArgs, R>
318+
export function fn<TArgs extends any[] = any, R = any>(): Mock<TArgs, R>
319319
export function fn<TArgs extends any[] = any[], R = any>(
320320
implementation: (...args: TArgs) => R
321321
): Mock<TArgs, R>

0 commit comments

Comments
 (0)
Please sign in to comment.