Options
All
  • Public
  • Public/Protected
  • All
Menu

ClassTransformer API

Index

Type Aliases

NumberValidateTypes: "Integer" | "Float" | "range"
ObjectNumberValidateType: IntegerRule | FloatRule | RangeRule | EnumRule
StringValidateTypes: "Base32" | "Base58" | "Base64" | "BIC" | "BtcAddress" | "DataURI" | "EthereumAddress" | "FullWidth" | "HexColor" | "HSL" | "Hexadecimal" | "HalfWidth" | "IBAN" | "ISIN" | "ISO4217" | "ISRC" | "JSON" | "JWT" | "LatLong" | "Locale" | "Lowercase" | "MongoId" | "MD5" | "MagnetURI" | "MimeType" | "Port" | "RFC3339" | "SemVer" | "Slug" | "SurrogatePair" | "Uppercase" | "VariableWidth" | "length" | "Email" | "range" | "MobilePhone" | "Float" | "Integer" | "Currency" | "Date" | "Decimal" | "FQDN" | "IP" | "IPRange" | "IdentityCard" | "ISSN" | "MACAddress" | "Numeric" | "PassportNumber" | "RgbColor" | "Url" | "UUID"
ValidateExceptionFields: Record<PropertyKey, ValidateException[]>
Where: Record<PropertyKey, any>

Functions

  • validate(field: string, fieldValue: string, validators: IValidator[]): void