export type MockFunction = (...args: never[]) => unknown; export type MockFunctionKeys = { [K in keyof T]: T[K] extends MockFunction ? K : never; }[keyof T]; export type JestMockedFunction = jest.Mock, Parameters>;