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().

Defined in

pinia/src/rootStore.ts:117


options

options: DefineStoreOptionsInPlugin<Id, S, G, A>

Current store being extended.

Defined in

pinia/src/rootStore.ts:127


pinia

pinia: Pinia

pinia instance.

Defined in

pinia/src/rootStore.ts:112


store

store: Store<Id, S, G, A>

Current store being extended.

Defined in

pinia/src/rootStore.ts:122