Skip to content

API DocumentationDocs


API Documentation / pinia / StoreOnActionListenerContext

Type Alias: StoreOnActionListenerContext<Id, S, G, A>

StoreOnActionListenerContext<Id, S, G, A>: _ActionsTree extends A ? _StoreOnActionListenerContext<StoreGeneric, string, _ActionsTree> : { [Name in keyof A]: Name extends string ? _StoreOnActionListenerContext<Store<Id, S, G, A>, Name, A> : never }[keyof A]

Context object passed to callbacks of store.$onAction(context => {}) TODO: should have only the Id, the Store and Actions to generate the proper object

Type Parameters

Id extends string

S extends StateTree

G

A

Released under the MIT License.