state-management-utilities
Version:
State management utilities
8 lines (7 loc) • 368 B
TypeScript
import type { TypeStateManagerConfigs } from "./state-manager";
import { StateManager } from "./state-manager";
export declare class Computed<DataType> extends StateManager<DataType> {
get value(): any;
set value(_: any);
constructor(callback: () => DataType, triggers: (StateManager<any> | Computed<any>)[], config?: TypeStateManagerConfigs<DataType>);
}