Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/prop/index"

Index

Functions

Functions

prop

  • Allows to make hyper-value from property of another hyper-value (of object-like value). This new property hyper-value will be up-to-date with the actual property and also writes to it when it's changed. It works similar to auto(hs, () => hv.propertyName) but also allows to write to source object. When writing is not needed consider using auto instead of prop

    Type parameters

    • T: any

      owner object type, it must be Object-like type (e.g. not string or number)

    • K: keyof T

      string type of key of the owner

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T>

      hyper-value object that owns the property

    • propertyName: K

      the name of the property

    Returns HyperValue<T[K]>

    property hyper-value

Generated using TypeDoc