Skip to content

Commit

Permalink
clean up exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Aug 11, 2022
1 parent 0072a54 commit 6f0f2ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-mock/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export type MockedClass<T extends ClassLike> = MockInstance<
export type MockedFunction<T extends FunctionLike> = MockInstance<T> &
MockedObject<T>;

export type MockedFunctionShallow<T extends FunctionLike> = MockInstance<T> & T;
type MockedFunctionShallow<T extends FunctionLike> = MockInstance<T> & T;

type MockedObject<T extends object> = {
export type MockedObject<T extends object> = {
[K in keyof T]: T[K] extends ClassLike
? MockedClass<T[K]>
: T[K] extends FunctionLike
Expand Down Expand Up @@ -85,7 +85,7 @@ export type Mocked<T extends object> = T extends ClassLike
? MockedObject<T>
: T;

export type MockedShallow<T extends object> = T extends ClassLike
type MockedShallow<T extends object> = T extends ClassLike
? MockedClass<T>
: T extends FunctionLike
? MockedFunctionShallow<T>
Expand Down

0 comments on commit 6f0f2ee

Please sign in to comment.