Reference
Store
Provides reactive state access, updates, transactions, selectors, and subscriptions.
Signature
interface StoreMembers
state: ReadonlyCell<T>function get(): Tfunction replace(next: StoreReplacer<T>): voidfunction select<U>(selector: (state: T): U, equality?: StoreEquality<U>): SelectedCell<U>function set(next: StoreSetter<T>): voidfunction subscribe(listener: StoreListener<T>): (): voidfunction transaction(fn: (): void): voidfunction update(updater: (previous: T): T | Partial<T>): void