Skip to content

@pinia/root / pinia / StoreActions

StoreActions<SS>

ts
type StoreActions<SS>: SS extends Store<string, StateTree, _GettersTree<StateTree>, infer A> ? A : _ExtractActionsFromSetupStore<SS>;

Extract the actions of a store type. Works with both a Setup Store or an Options Store.

Type Parameters

SS

Released under the MIT License.