Interface SetupStoreDefinition<Id, SS>

Return type of defineStore() with a setup function.

  • Id is a string literal of the store's name
  • SS is the return type of the setup function
interface SetupStoreDefinition<Id, SS> {
    $id: Id;
    (pinia?, hot?): Store<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>;
}

Type Parameters

  • Id extends string

  • SS

Hierarchy (view full)

Properties

Properties

$id: Id

Id of the store. Used by map helpers.

Generated using TypeDoc