Skip to content

API Documentation / pinia / PiniaPluginContext

Interface: PiniaPluginContext<Id, S, G, A>

pinia.PiniaPluginContext

Context argument passed to Pinia plugins.

Type parameters

NameType
Idextends string = string
Sextends 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.

Released under the MIT License.