Type Alias ToOuter<Outer, Inner>

ToOuter<Outer, Inner>: ((data: Inner) => Outer | null)

Converts inner state (persisted) to outer state (used in Vuex), e.g. JSON.parse(…).

Type Parameters

  • Outer
  • Inner

Type declaration

    • (data): Outer | null
    • Parameters

      • data: Inner

        The state data in inner format.

      Returns Outer | null

      The state data in outer format.

Outer - The Vuex state type.

Inner - The storage state type.