Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GenericStorage

Implements

Index

Constructors

constructor

Properties

Protected emitter

emitter: EventEmitter

The internal event emitter to handle the watch callbacks with

Protected storage

storage: PlainObject<any>

The reference to the storage object

Methods

forEach

  • forEach(callback: Function): void

get

  • get(key?: string | number, fallback?: any): any
  • Returns the current value for the given storage key. If the key is not set (undefined) the fallback value will be returned instead.

    Parameters

    • Optional key: string | number
    • Optional fallback: any

    Returns any

getEmitter

has

  • has(key: string | number): boolean

remove

set

unwatch

watch

Generated using TypeDoc