Decorator that checks if the property is after the target constraint instant argument.
target
class IsAfterInstantDemo { @IsAfterInstant(new Date(0)) after: Date = new Date(1);}class IsAfterInstantReferenceDemo { before: Date = new Date(0); @IsAfterInstant('before') after: Date = new Date(1);}
Either a Date instance or the name of the property containing the date used in the comparison.
The validation options
The validation context.
The object containing the property to validate.
The result of the date comparison
Generated using TypeDoc
Decorator that checks if the property is after the
targetconstraint instant argument.Example