Skip to content

API DocumentationDocs


API Documentation / pinia / Store

Type Alias: Store<Id, S, G, A>

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

Released under the MIT License.