@mic-rexjs/usecases
Version:
Usecases of Clean Architecture
10 lines (9 loc) • 317 B
TypeScript
import { EntityStoreOptions, EntityWatcher } from './types';
export declare class EntityStore<T> {
#private;
value: T;
constructor(initialEntity: T, options?: EntityStoreOptions<T>);
setValue(value: T): void;
unwatch(watcher: EntityWatcher<T>): void;
watch(watcher: EntityWatcher<T>): void;
}