Function forceDynamicConversion

  • This is the reverse case of blockDynamicConversion in that this will tag an object to indicate that it should always be converted into a dynamic trackable object even when not an object or array. So all properties of this object will become get / set accessor functions.

    When you have tagged a value as both forceDynamicConversion and blocked force will take precedence.

    If value is falsy (null / undefined / 0 / empty string etc) it will not be tagged and if there is an exception adding the property to the value (because its frozen etc) the exception will be swallowed.

    Type Parameters

    • T

    Parameters

    • value: T

      The object that should be tagged and converted if included into a dynamic configuration.

    Returns T

    The original value

Generated using TypeDoc