@pinia/root / pinia / StoreDefinition
StoreDefinition()<Id, S, G, A>
Return type of defineStore()
. Function that allows instantiating a store.
Extended by
Type Parameters
• Id extends string
= string
• S extends StateTree
= StateTree
• G = _GettersTree
<S
>
• A = _ActionsTree
ts
interface StoreDefinition(pinia?, hot?): Store<Id, S, G, A>
Return type of defineStore()
. Function that allows instantiating a store.
Parameters
• pinia?: null
| Pinia
Pinia instance to retrieve the store
• hot?: StoreGeneric
dev only hot module replacement
Returns
Store
<Id
, S
, G
, A
>
Properties
$id
ts
$id: Id;
Id of the store. Used by map helpers.