UNPKG

@tanstack/store

Version:

Framework agnostic type-safe store w/ reactive framework adapters

18 lines (15 loc) 233 B
/** * @private */ export type AnyUpdater = (prev: any) => any /** * @private */ export interface ListenerValue<T> { prevVal: T currentVal: T } /** * @private */ export type Listener<T> = (value: ListenerValue<T>) => void