1.0.1 • Published 5 months ago

@adaikappan/nestjs-dto v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

DT Decorators

String

  • IsString
  • IsLower
  • IsUpper
  • MinLength
  • MaxLength
  • Length
  • StringContains
  • StringNotContains
  • MatchRegex

Number

  • IsNumber
  • IsInt
  • Min
  • Max
  • IsPositive
  • IsNegative

Boolean

  • IsBoolean

Date

  • IsDate ( Transform and IOS )
  • MinDate ( Transform and IOS )
  • MaxDate ( Transform and IOS )

Array

  • IsArray @IsArray() @Type(() = * TestDto) @ValidateNested({})
  • ArrayMinSize
  • ArrayMaxSize
  • ArrayNotEmpty
  • ArrayUnique
  • ArrayContains
  • ArrayNotContains

Object

  • IsObject @IsObject() @Type(() = * TestDto) @ValidateNested({})

Common

  • IsRequired
  • ValidateNested
  • IsEnum
  • Equals

Helper Decorators

Transform

UC Decorators

common

  • isbase64
  • isemail
  • isurl
  • isJWT
  • isMongoId
  • isuuid
  • isPort
  • isLatLng
  • isLat
  • isLong
  • isphone num
  • iscurrency

Hybrid Decorators

  • String
  • Number
  • Date
  • Object
  • Array
1.0.1

5 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.9

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago