AugmentParam

interface AugmentParam<T extends generic, V extends generic>

An interface that describes a parameter in a call to the augment function.

Type parameters

  • T: generic

  • V: generic

Properties

fn

fn: (t: T): V

The callback function used to compute the value for the property.

virtual

virtual: undefined | boolean

If this is set to true, the callback function will be added as a getter on the target object. If this is false or omitted, the callback function will be evaluated once and the resulting value will be added on the object as a real property.