Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadonlyAtom<T>

Type parameters

  • T

Hierarchy

  • IDeref<T>
  • IRelease
  • IWatch<T>

Index

Methods

addWatch

  • addWatch(id: string, fn: Watch<T>): boolean
  • Parameters

    • id: string
    • fn: Watch<T>

    Returns boolean

deref

  • deref(): T
  • Returns wrapped value.

    Returns T

notifyWatches

  • notifyWatches(oldState: T, newState: T): void

release

  • release(opt?: any): boolean
  • Parameters

    • Optional opt: any

    Returns boolean

removeWatch

  • removeWatch(id: string): boolean

Generated using TypeDoc