Type Alias Merger<S>

Merger<S>: ((loaded: Partial<S>, previous: S) => S)

Merges state loaded from the storage with the one present in Vuex.

Type Parameters

  • S

Type declaration

    • (loaded, previous): S
    • Parameters

      • loaded: Partial<S>

        State just loaded from the storage.

      • previous: S

        State present in Vuex (probably defaults).

      Returns S

      State that will be put into Vuex.