Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IObservableStorage<TValue>

This is simmilar to Web Storage API interface but values are observable streams.

Type parameters

Hierarchy

  • IDestroyable
    • IObservableStorage

Implemented by

Index

Properties

isDestroyed: boolean

Is destroyed?

value: TValue

Just a shorthand to get/set last/next value in values

values: Omit<BehaviorSubject<TValue>, "next">

Set values through value not value.next() (TODO: Maybe change?)

Methods

  • destroy(): Promisable<void>
  • Destroy the object

    Returns Promisable<void>

  • setValue(value: Partial<TValue>): void