diff --git a/packages/jest-mock/src/index.ts b/packages/jest-mock/src/index.ts index 7251b0a9ec02..d84de0721903 100644 --- a/packages/jest-mock/src/index.ts +++ b/packages/jest-mock/src/index.ts @@ -87,16 +87,17 @@ type FunctionPropertyNames = { }[keyof T] & string; -interface Mock = Array> +export interface Mock = Array> extends Function, MockInstance { new (...args: Y): T; (...args: Y): T; } -interface SpyInstance> extends MockInstance {} +export interface SpyInstance> + extends MockInstance {} -interface MockInstance> { +export interface MockInstance> { _isMockFunction: true; _protoImpl: Function; getMockName(): string;