@pinia/root / pinia / StoreOnActionListenerContext
StoreOnActionListenerContext<Id, S, G, A>
ts
type 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