import type * as ts from 'typescript' ; import { CustomFunction } from '../matcher/matcher' ; import { storeRegisterMock } from '../mock/mock' ; import { customFunctionWithTypeArgument } from './helpers/custom-function-with-type-argument' ; export const registerMockCustomFunction = customFunctionWithTypeArgument ( 'register-mock.d.ts' , 'registerMock' , ( node , nodeToMock ) : ts . Node => storeRegisterMock ( nodeToMock , node ) ) ;