utils/node_modules/computeds/out/signal.d.ts
2024-02-07 01:33:07 -05:00

8 lines
218 B
TypeScript

export interface Signal<T = any> {
(): T;
set(newValue: T): void;
markDirty(): void;
}
export declare function signal<T>(): Signal<T | undefined>;
export declare function signal<T>(oldValue: T): Signal<T>;