UNPKG

@lifeart/gxt

Version:

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

10 lines (9 loc) • 380 B
import { type Cell } from '../index.ts'; 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 {};