Interface StoreDefinition<Id, S, G, A>

Return type of defineStore(). Function that allows instantiating a store.

interface StoreDefinition<Id, S, G, A> {
    $id: Id;
    (pinia?, hot?): Store<Id, S, G, A>;
}

Type Parameters

Hierarchy (view full)

  • Returns a store, creates it if necessary.

    Parameters

    • Optional pinia: Pinia

      Pinia instance to retrieve the store

    • Optional hot: StoreGeneric

      dev only hot module replacement

    Returns Store<Id, S, G, A>

Properties

Properties

$id: Id

Id of the store. Used by map helpers.

Generated using TypeDoc