Skip to content

Commit

Permalink
fix(types): fix MockedClass typeParams (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanimodori committed Jul 27, 2022
1 parent 021aca2 commit 7c17031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/integrations/spy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ interface Constructable {
}

export type MockedClass<T extends Constructable> = MockInstance<
InstanceType<T>,
T extends new (...args: infer P) => any ? P : never
T extends new (...args: infer P) => any ? P : never,
InstanceType<T>
> & {
prototype: T extends { prototype: any } ? Mocked<T['prototype']> : never
} & T
Expand Down

0 comments on commit 7c17031

Please sign in to comment.