Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UniversalStorage

Implements

  • Storage

Index

Constructors

constructor

Properties

cookies

cookies: Cookies = new Cookies()

store

store: Store = isBrowser ? window.localStorage : Object.create(null)

Accessors

length

length:

Methods

clear

  • clear(): void

getItem

  • getItem(key: keyof Store): string

Protected getLocalItem

  • getLocalItem(key: keyof Store): string

Protected getUniversalItem

  • getUniversalItem(key: keyof Store): any

key

  • key(index: number): string

removeItem

  • removeItem(key: string): void

Protected removeLocalItem

  • removeLocalItem(key: keyof Store): void

Protected removeUniversalItem

  • removeUniversalItem(key: keyof Store): void

setItem

  • setItem(key: keyof Store, value: string): void

Protected setLocalItem

  • setLocalItem(key: keyof Store, value: string): void

Protected setUniversalItem

  • setUniversalItem(key: keyof Store, value: string, options?: CookieSetOptions): void