• @Pre decorator defines a function computed before reading the property value.

    Type Parameters

    • This

    Parameters

    • func: PrePostFunction<This>

      Function that will be executed before the Controller/Validator/Transfromer validators.

    • Optionalopt: Partial<PrePostOptions>

      PrePost options.

    Returns ClassAndPropertyDecoratorType<This>

    The property decorator function ran at runtime