Interface PiniaPluginContext<Id, S, G, A>

Context argument passed to Pinia plugins.

interface PiniaPluginContext<Id, S, G, A> {
    app: App<any>;
    options: DefineStoreOptionsInPlugin<Id, S, G, A>;
    pinia: Pinia;
    store: Store<Id, S, G, A>;
}

Type Parameters

Properties

Properties

app: App<any>

Current app created with Vue.createApp().

Initial options defining the store when calling defineStore().

pinia: Pinia

pinia instance.

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

Current store being extended.

Generated using TypeDoc