ts-auto-mock
Version:
Typescript transformer to unlock automatic mock creation for interfaces and classes
8 lines (7 loc) • 687 B
TypeScript
import type * as ts from 'typescript';
import { Scope } from '../scope/scope';
export declare function GetMockFactoryCall(typeReferenceNode: ts.TypeReferenceNode, declaration: ts.Declaration, scope: Scope): ts.Expression;
export declare function CreateMockFactory(typeReferenceNode: ts.TypeReferenceNode, declaration: ts.Declaration, scope: Scope): ts.Expression;
export declare function GetMockFactoryCallIntersection(intersection: ts.IntersectionTypeNode, scope: Scope): ts.Expression;
export declare function GetMockFactoryCallTypeofEnum(declaration: ts.EnumDeclaration, scope: Scope): ts.Expression;
export declare function GetMockFactoryCallForThis(mockKey: string): ts.Expression;