Function preFunctionDecoratorFactory

  • preFunctionDecoratorFactory function helps create a decorator that will save the metadata of the Pre decorator.

    Type Parameters

    • This

    Parameters

    • name: string

      Name of the 'pre' decorator.

    • func: PrePostFunction<This>

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

    • opt: Partial<PrePostOptions> = PrePostOptionsDefault

      PrePost options.

    Returns ClassAndPropertyDecoratorType<This>

    The property decorator function ran at runtime