@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 extends string
= string
• S extends StateTree
= object
• G = object
• A = object