UNPKG

ts-auto-mock

Version:

Typescript transformer to unlock automatic mock creation for interfaces and classes

12 lines (11 loc) 441 B
import type * as ts from 'typescript'; export type InterfaceOrClassDeclaration = ts.InterfaceDeclaration | ts.ClassDeclaration; export declare class Scope { private _hydrated; constructor(currentMockKey?: string); static fromScope(scope: Scope, currentMockKey: string): Scope; private readonly _currentMockKey; get currentMockKey(): string | undefined; get hydrated(): boolean; set hydrated(hydrated: boolean); }