UNPKG

@lifeart/gxt

Version:

<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">

11 lines (9 loc) • 376 B
import { Cell } from '../reactive'; interface Storage<T> { cell: Cell<T>; update(value: T): void; } export declare function createStorage<T>(initialValue?: T, isEqual?: (oldValue: T, newValue: T) => boolean): Storage<T>; export declare function getValue<T>(storage: Storage<T>): T; export declare function setValue<T>(storage: Storage<T>, value: T): void; export {};