• useTransformer execute an array of Transformer decorator metadata on a property of a target instance.

    Type Parameters

    • This

      The type of the class the decorator is applied to.

    Parameters

    • transformers: Transformer<This>[]

      An array of transformers to apply.

    • propertyValue: any

      The initial value of the property to transform.

    • targetInstance: This

      The target class instance containing the property.

    • scope: ExecutionScope = ExecutionScope.OnRead

    Returns any

    The transformed value.