Type Alias ToInner<Outer, Inner>

ToInner<Outer, Inner>: ((data: Outer) => Inner)

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

Type Parameters

  • Outer
  • Inner

Type declaration

    • (data): Inner
    • Parameters

      • data: Outer

        The state data in outer format.

      Returns Inner

      The state data in inner format.

Outer - The Vuex state type.

Inner - The storage state type.