@tanstack/store
Advanced tools
Comparing version 0.5.0 to 0.5.2
export type AnyUpdater = (...args: any[]) => any; | ||
export type Listener = () => void; | ||
interface StoreOptions<TState, TUpdater extends AnyUpdater = (cb: TState) => TState> { | ||
export interface StoreOptions<TState, TUpdater extends AnyUpdater = (cb: TState) => TState> { | ||
updateFn?: (previous: TState) => (updater: TUpdater) => TState; | ||
@@ -20,2 +20,1 @@ onSubscribe?: (listener: Listener, store: Store<TState, TUpdater>) => () => void; | ||
} | ||
export {}; |
{ | ||
"name": "@tanstack/store", | ||
"author": "Tanner Linsley", | ||
"version": "0.5.0", | ||
"version": "0.5.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "tanstack/store", |
@@ -5,3 +5,3 @@ export type AnyUpdater = (...args: any[]) => any | ||
interface StoreOptions< | ||
export interface StoreOptions< | ||
TState, | ||
@@ -8,0 +8,0 @@ TUpdater extends AnyUpdater = (cb: TState) => TState, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15179
223