Skip to content

API DocumentationDocs


API Documentation / pinia / PiniaPluginContext

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

Context argument passed to Pinia plugins.

Type Parameters

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.

Released under the MIT License.