UNPKG

ts-auto-mock

Version:

Typescript transformer to unlock automatic mock creation for interfaces and classes

9 lines (8 loc) 422 B
import type * as ts from 'typescript'; export interface CustomFunction { sourceUrl: string; sourceDts: string; isHandledFunction(node: ts.CallExpression, declaration: ts.SignatureDeclaration): boolean; run(node: ts.CallExpression): ts.Node; } export declare function getMatchingCustomFunction(node: ts.CallExpression, declaration: ts.Declaration, customFunctions: CustomFunction[]): CustomFunction | void;