API Documentation / pinia / PiniaPluginContext
Interface: PiniaPluginContext<Id, S, G, A>
pinia.PiniaPluginContext
Context argument passed to Pinia plugins.
Type parameters
| Name | Type |
|---|---|
Id | extends string = string |
S | extends StateTree = StateTree |
G | _GettersTree<S> |
A | _ActionsTree |
Properties
app
• app: App<any>
Current app created with Vue.createApp().
options
• options: DefineStoreOptionsInPlugin<Id, S, G, A>
Initial options defining the store when calling defineStore().
pinia
• pinia: Pinia
pinia instance.
store
• store: Store<Id, S, G, A>
Current store being extended.
