API Documentation • Docs
API Documentation / pinia / StoreOnActionListenerContext
Type Alias: StoreOnActionListenerContext<Id, S, G, A>
StoreOnActionListenerContext<
Id
,S
,G
,A
>:_ActionsTree
extendsA
?_StoreOnActionListenerContext
<StoreGeneric
,string
,_ActionsTree
> :{ [Name in keyof A]: Name extends string ? _StoreOnActionListenerContext<Store<Id, S, G, A>, Name, A> : never }
[keyofA
]
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