Skip to content

@pinia/root / pinia / Store

Store<Id, S, G, A> ​

ts
type Store<Id, S, G, A> = _StoreWithState<Id, S, G, A> & UnwrapRef<S> & _StoreWithGetters<G> & _ActionsTree extends A ? object : A & PiniaCustomProperties<Id, S, G, A> & PiniaCustomStateProperties<S>;

Store type to build a store.

Type Parameters ​

Id ​

Id extends string = string

S ​

S extends StateTree = { }

G ​

G = { }

A ​

A = { }

Released under the MIT License.