• Validate Parameter Decorator Factory

    Returns a parameter decorator that validates the parameter. Expects a validator class to be passed in. If the Validator.validate method returns a value, the value will be set as the parameter. If the Validator.validate method throws an error, the error will be passed up.

    Returns

    • Parameter decorator

    Type Parameters

    • T

    • U

    Parameters

    Returns ParameterDecorator

Generated using TypeDoc