Decorator that checks if the property value is greater than the argument.
class IsGreaterThanDemo { @IsGreaterThan(10) e:number = 20}class IsGreaterThanDemo { firstNumber:number = 10 @IsGreaterThan('firstNumber') secondNumber:number = 20}
The validation options
Value is valid if it passes the {@link isGreaterThan} check.
The validation context.
The object containing the property to validate.
The result of the call to {@link isGreaterThan}
Generated using TypeDoc
Decorator that checks if the property value is greater than the argument.
Example