Skip to content

@pinia/root / pinia / PiniaPlugin

PiniaPlugin() ​

Plugin to extend every store.

ts
interface PiniaPlugin(context): 
  | void
| Partial<PiniaCustomProperties<_GettersTree<StateTree>> & PiniaCustomStateProperties>

Plugin to extend every store.

Parameters ​

context ​

PiniaPluginContext<_GettersTree<StateTree>>

Context

Returns ​

| void | Partial<PiniaCustomProperties<_GettersTree<StateTree>> & PiniaCustomStateProperties>

Released under the MIT License.