Type Alias TransformerFunction<This>

TransformerFunction: (value: any, targetInstance: This) => any

TransformerFunction is a function that takes as arguments the current value of the property as well as an instance of the class the decorated property belongs in, and returns a transformed value.

Type Parameters

  • This

Type declaration

    • (value: any, targetInstance: This): any
    • Parameters

      • value: any
      • targetInstance: This

      Returns any