UNPKG

ts-auto-mock

Version:

Typescript transformer to unlock automatic mock creation for interfaces and classes

14 lines (13 loc) 416 B
import type * as ts from 'typescript'; export interface DeclarationListCacheElement { declarations: ts.Declaration[]; key: string; } export declare class DeclarationListCache { private _cache; constructor(); set(declarations: ts.Declaration[], key: string): void; get(declarations: ts.Declaration[]): string | undefined; has(declarations: ts.Declaration[]): boolean; private _find; }