UNPKG

@tanstack/store

Version:

Framework agnostic type-safe store w/ reactive framework adapters

16 lines (15 loc) 239 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;