Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/bind/index"

Index

Interfaces

Functions

Functions

bind

  • bind<T>(hs: HyperScope, hv: HyperValue<T>, fn: function, init?: boolean): void
  • Works almost the same as auto but instead of creating a new hyper-value it updates existing one. It gets fn result value and keeps track of changes of used hyper-values.

    Type parameters

    • T

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T>

      hyper-value to be updated

    • fn: function

      function that computes the value

        • (): T
        • Returns T

    • Default value init: boolean = true

      if set to false it will not set the initial value straight after calling bind

    Returns void

Generated using TypeDoc