• Generates derived, readable, writable helper functions wrapping the given Storage API provided with any additional customization for data serialization. By default, JSON serialization is used.

    Parameters

    • __namedParameters: {
          deserialize?: ((value, ...rest) => any);
          serialize?: ((value, ...rest) => string);
          storage: Storage;
      }
      • Optional deserialize?: ((value, ...rest) => any)
          • (value, ...rest): any
          • Parameters

            • value: string
            • Rest ...rest: any[]

            Returns any

      • Optional serialize?: ((value, ...rest) => string)
          • (value, ...rest): string
          • Parameters

            • value: any
            • Rest ...rest: any[]

            Returns string

      • storage: Storage

    Returns StorageStores

    A complete set of store helper functions and associated storage API instance and serialization strategy.