class-validator APIs
- IsString
- IsNotEmpty
- IsEmail
- IsOptional
- IsNumber
- IsEnum
- IsBoolean
- MinLength
- IsInt
- validate
- MaxLength
- IsArray
- Length
- ValidateNested
- Min
- IsDate
- Matches
- ValidationError
- Max
- IsUrl
- IsIn
- ValidationOptions
- ValidationArguments
- IsDefined
- registerDecorator
- IsObject
- ValidateIf
- ValidatorConstraint
- IsUUID
- ValidatorConstraintInterface
- IsPositive
- validateSync
- validateOrReject
- Validate
- Equals
- isArray
- IsAlphanumeric
- ArrayMinSize
- isString
- IsJSON
- IsMongoId
- IsDateString
- isUUID
- isISO8601
- IsBooleanString
- IsLongitude
- ArrayNotEmpty
- IsLatitude
- useContainer
- IsInstance
- IsAlpha
- isBoolean
- isDefined
- IsJWT
- IsSemVer
- MetadataStorage
- ValidateBy
- getFromContainer
- Allow
- ArrayUnique
- IsLowercase
- IsIP
- ArrayMaxSize
- IsISO31661Alpha3
- IsPhoneNumber
- IsHash
- IsNegative
- IsDecimal
- IsNumberString
- IsNotIn
- IsEmpty
- matches
- isMongoId
- MinDate
- IsRFC3339
- Validator
- ValidatePromise
- IsISO8601
- isNotEmpty
- isEmpty
- IsMobilePhone
- NotContains
- isNumber
- IsHexColor
- isObject
Other Related APIs
class-validator#MinDate TypeScript Examples
The following examples show how to use
class-validator#MinDate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: task.dto.ts From codeclannigeria-backend with MIT License | 5 votes |
@Expose()
@IsDate()
@MinDate(new Date(), { message: 'Date must be in future' })
@IsOptional()
@ApiProperty({ type: Date })
@Type(() => Date)
deadline?: Date;