Skip to content

Commit

Permalink
Add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Aug 5, 2024
1 parent 2224dad commit 6a4e7b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/lib/test/src/spy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const spyOn: typeof vitestSpyOn = (...args) => {

type Procedure = (...args: any[]) => any;

// TODO: Remove in 9.0
export type Mock<T extends Procedure | any[], R = any> = T extends Procedure
? MockV2<T>
: T extends any[]
Expand All @@ -41,6 +42,7 @@ export type Mock<T extends Procedure | any[], R = any> = T extends Procedure

// V2
export function fn<T extends Procedure = Procedure>(implementation?: T): Mock<T>;
// TODO: Remove in 9.0
// V1
export function fn<TArgs extends any[] = any, R = any>(): Mock<(...args: TArgs) => R>;
export function fn<TArgs extends any[] = any[], R = any>(
Expand Down

0 comments on commit 6a4e7b7

Please sign in to comment.