@komondor-lab/core
Version:
Komondor core library
15 lines • 581 B
TypeScript
export interface Spec<T> {
subject: T;
}
export declare type SpecMode = 'live' | 'save' | 'simulate';
export declare function spec<T>(id: string, subject: T): Promise<Spec<T>>;
export declare namespace spec {
var save: typeof saveSpec;
var simulate: typeof simulateSpec;
var live: typeof liveSpec;
}
declare function saveSpec<T>(id: string, subject: T): Promise<Spec<T>>;
declare function simulateSpec<T>(id: string, subject: T): Promise<Spec<T>>;
declare function liveSpec<T>(id: string, subject: T): Promise<Spec<T>>;
export {};
//# sourceMappingURL=spec.d.ts.map