Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:11
Type Parameters#
T#
T
TActions#
TActions extends StoreActionMap = never
Constructors#
Constructor#
new Store<T, TActions>(getValue): Store<T, TActions>;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:14
Parameters#
getValue#
(prev?) => T
Returns#
Store<T, TActions>
Constructor#
new Store<T, TActions>(initialValue): Store<T, TActions>;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:15
Parameters#
initialValue#
T
Returns#
Store<T, TActions>
Constructor#
new Store<T, TActions>(initialValue, actionsFactory): Store<T, TActions>;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:16
Parameters#
initialValue#
NonFunction<T>
actionsFactory#
StoreActionsFactory<T, TActions>
Returns#
Store<T, TActions>
Properties#
actions#
readonly actions: TActions;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:13
Accessors#
state#
Get Signature#
get state(): T;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:18
Returns#
T
Methods#
get()#
get(): T;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:19
Returns#
T
setState()#
setState(updater): void;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:17
Parameters#
updater#
(prev) => T
Returns#
void
subscribe()#
subscribe(observerOrFn): Subscription;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.d.ts:20
Parameters#
observerOrFn#
Observer<T> | ((value) => void)