UNPKG

ts-auto-mock

Version:

Typescript transformer to unlock automatic mock creation for interfaces and classes

10 lines (9 loc) 385 B
import type * as ts from 'typescript'; export type PossibleDeclaration = ts.InterfaceDeclaration | ts.ClassDeclaration | ts.TypeAliasDeclaration; export declare class FactoryUniqueName { private _keyCounter; constructor(); createForDeclaration(declaration: PossibleDeclaration): string; createForIntersection(nodes: ts.Node[]): string; private _createUniqueName; }