Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/auto/index"

Index

Functions

Functions

auto

  • auto<T>(hs: HyperScope, fn: function): HyperValue<T>
  • takes a function that calculates some value from some other hyper-values and return a new hyper-value equals to calculated expression. Furthermore it remembers all hyper-values used in the function and subscribe to them. Because of that, the returned hyper-value is always relevant.

    Type parameters

    • T

      type of internal value

    Parameters

    • hs: HyperScope

      HyperScope instance

    • fn: function

      a function that calculates the value

        • (): T
        • Returns T

    Returns HyperValue<T>

Generated using TypeDoc