Skip to content

Commit

Permalink
fix: remove partial
Browse files Browse the repository at this point in the history
  • Loading branch information
syi0808 committed Jul 15, 2024
1 parent 01332f4 commit e441e4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vitest/src/types/mocker.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export type MockFactoryWithHelper<M = unknown> = (
importOriginal: () => Promise<M>
) => Partial<Record<keyof M, any>>
importOriginal: <T extends M = M>() => Promise<T>
) => Record<keyof M, any> | null
export type PromiseMockFactoryWithHelper<M = unknown> = (
importOriginal: () => Promise<M>
) => Promise<Partial<Record<keyof M, any>>>
importOriginal: <T extends M = M>() => Promise<T>
) => Promise<Record<keyof M, any>> | null
export type MockFactory = () => any

export type MockMap = Map<string, Record<string, string | null | MockFactory>>
Expand Down

0 comments on commit e441e4a

Please sign in to comment.