@pinia/root / pinia / PiniaPluginContext
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
ts
app: App<any>;
Current app created with Vue.createApp()
.
options
ts
options: DefineStoreOptionsInPlugin<Id, S, G, A>;
Initial options defining the store when calling defineStore()
.
pinia
ts
pinia: Pinia;
pinia instance.
store
ts
store: Store<Id, S, G, A>;
Current store being extended.