Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "SafeLocalStorage"

Index

Variables

Const DEFAULT_STORAGE_KEY

DEFAULT_STORAGE_KEY: "__RECENT_SEARCHES__" = "__RECENT_SEARCHES__"

Functions

Const NewSafeLocalStorage

Const isLocalStorageSupported

  • isLocalStorageSupported(): boolean

Const safeDataParse

  • safeDataParse<T>(data: string | null, defaultValue: T): T
  • Type parameters

    • T

    Parameters

    • data: string | null
    • defaultValue: T

    Returns T

Generated using TypeDoc