• Builds sessionStorage wrapper.

    Type Parameters

    • Outer

    Parameters

    • key: string

      Key used to store the persisted state.

    • OptionaltoInner: ToInner<Outer, string>

      Custom conversion from state object to string (default is JSON.stringify).

    • OptionaltoOuter: ToOuter<Outer, string>

      Custom conversion from string to state object (default is JSON.parse).

    Returns GenericStorageWrapper<Outer, string>

    Outer - The Vuex state type.

    Inner - The storage state type.