Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StorageItem<State, JSONState>

Type parameters

  • State

  • JSONState

Hierarchy

  • StorageItem

Index

Methods

fromJSON

  • fromJSON(obj: Partial<JSONState>): void
  • recover the state from its JSON representation

    An object that has all or some properties of the JSONState will be passed as a parameter. The missing properties will be assigned with the value returned by the getDefault method.

    Parameters

    • obj: Partial<JSONState>

    Returns void

getDefault

  • getDefault(): State

toJSON

  • toJSON(this: StoreModule<State, JSONState>): JSONState
  • serialize this (the store module) to its JSON representation

    Parameters

    Returns JSONState

Generated using TypeDoc