ts-auto-mock
Version:
Typescript transformer to unlock automatic mock creation for interfaces and classes
8 lines (7 loc) • 500 B
TypeScript
import type * as ts from 'typescript';
import { GenericDeclarationSupported } from './genericDeclarationSupported';
export interface IGenericDeclaration {
addFromTypeReferenceNode(node: ts.TypeReferenceNode, declarationKey: string): void;
addFromDeclarationExtension(declarationKey: string, extensionDeclaration: GenericDeclarationSupported, extensionDeclarationKey: string, extension: ts.ExpressionWithTypeArguments): void;
getExpressionForAllGenerics(): ts.ObjectLiteralExpression[];
}