API Documentation • Docs
API Documentation / pinia / PiniaPlugin
Interface: PiniaPlugin()
Plugin to extend every store.
PiniaPlugin(
context
):void
|Partial
<PiniaCustomProperties
<string
,StateTree
,_GettersTree
<StateTree
>,_ActionsTree
> &PiniaCustomStateProperties
<StateTree
>>
Plugin to extend every store.
Parameters
• context: PiniaPluginContext
<string
, StateTree
, _GettersTree
<StateTree
>, _ActionsTree
>
Context
Returns
void
| Partial
<PiniaCustomProperties
<string
, StateTree
, _GettersTree
<StateTree
>, _ActionsTree
> & PiniaCustomStateProperties
<StateTree
>>