Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/watch/index"

Index

Functions

Functions

watch

  • Applied to a hyper-value it observes any changes and invokes fn each time hyper-value changes.

    Type parameters

    • T

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T> | number

      hyper-value to be observed

    • fn: WatcherFn<T>

      a function to be called on changes

    Returns number

    return a WatcherId that can be used in unwatch helper

Generated using TypeDoc