• @IfThen decorator pass the Primitive.Relation to read if the condition is met.

    Type Parameters

    • This
    • Target
    • Value

    Parameters

    • func: ConditionFunction<This>

      A function that receive the instance as a parameter and return a boolean

    • Optionalthen: Primitive<Target>
    • Optionalargs: ((curr: This) => any[])
        • (curr): any[]
        • Parameters

          Returns any[]

    Returns DecoratorType<This, Value>

    The property decorator function ran at runtime