Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace localState

Index

Functions

Functions

  • get<State>(statePath: string, idKey: string): State
  • Gets the saved local state of some resource from localStorage.

    Type parameters

    • State: null | { id: string }

    Parameters

    • statePath: string
    • idKey: string

    Returns State

  • set<State>(statePath: string, idKey: string, state: State): void
  • Saves the state of some resource to localStorage.

    Type parameters

    • State: null | { id: string }

    Parameters

    • statePath: string
    • idKey: string
    • state: State

    Returns void

Generated using TypeDoc