API Documentation • Docs
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
extendsA
?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