Skip to content

Guia completo para

Dominar a Pinia

escrito pelo seu criador

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.

Lançada sob a Licença MIT.