Skip to content

@pinia/root / pinia / DefineSetupStoreOptions

DefineSetupStoreOptions<Id, S, G, A> ​

Options parameter of defineStore() for setup stores. Can be extended to augment stores with the plugin API.

See ​

DefineStoreOptionsBase.

Extends ​

Type Parameters ​

Id ​

Id extends string

S ​

S extends StateTree

G ​

G

A ​

A

Properties ​

actions? ​

ts
optional actions: A;

Extracted actions. Added by useStore(). SHOULD NOT be added by the user when creating the store. Can be used in plugins to get the list of actions in a store defined with a setup function. Note this is always defined

Released under the MIT License.