@nanoforge-dev/config
Functions
Allow()
function Allow(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/Allow.d.ts:5
If object has both allowed and not allowed properties a validation error will be thrown.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayContains()
function ArrayContains(values, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayContains.d.ts:12
Checks if array contains all values from the given array of values. If null or undefined is given then this function returns false.
Parameters
values
any[]
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayMaxSize()
function ArrayMaxSize(max, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayMaxSize.d.ts:12
Checks if the array’s length is less or equal to the specified number. If null or undefined is given then this function returns false.
Parameters
max
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayMinSize()
function ArrayMinSize(min, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayMinSize.d.ts:12
Checks if the array’s length is greater than or equal to the specified number. If null or undefined is given then this function returns false.
Parameters
min
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayNotContains()
function ArrayNotContains(values, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayNotContains.d.ts:12
Checks if array does not contain any of the given values. If null or undefined is given then this function returns false.
Parameters
values
any[]
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayNotEmpty()
function ArrayNotEmpty(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayNotEmpty.d.ts:12
Checks if given array is not empty. If null or undefined is given then this function returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ArrayUnique()
function ArrayUnique<T>(identifierOrOptions?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/array/ArrayUnique.d.ts:13
Checks if all array’s values are unique. Comparison for objects is reference-based. If null or undefined is given then this function returns false.
Type Parameters
T
T = any
Parameters
identifierOrOptions?
ValidationOptions | ArrayUniqueIdentifier<T>
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Contains()
function Contains(seed, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/Contains.d.ts:12
Checks if the string contains the seed. If given value is not a string, then it returns false.
Parameters
seed
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Default()
function Default(defaultValue): PropertyDecorator;
Defined in: packages/config/src/default.ts:4
Parameters
defaultValue
unknown
Returns
PropertyDecorator
Equals()
function Equals(comparison, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/Equals.d.ts:10
Checks if value matches (“===”) the comparison.
Parameters
comparison
any
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Expose()
function Expose(options?): PropertyDecorator & ClassDecorator;
Defined in: node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/types/decorators/expose.decorator.d.ts:9
Marks the given class or property as included. By default the property is included in both
constructorToPlain and plainToConstructor transformations. It can be limited to only one direction
via using the toPlainOnly or toClassOnly option.
Can be applied to class definitions and properties.
Parameters
options?
ExposeOptions
Returns
PropertyDecorator & ClassDecorator
IsAlpha()
function IsAlpha(locale?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsAlpha.d.ts:13
Checks if the string contains only letters (a-zA-Z). If given value is not a string, then it returns false.
Parameters
locale?
AlphaLocale
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsAlphanumeric()
function IsAlphanumeric(locale?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsAlphanumeric.d.ts:13
Checks if the string contains only letters and numbers. If given value is not a string, then it returns false.
Parameters
locale?
AlphanumericLocale
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsArray()
function IsArray(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsArray.d.ts:10
Checks if a given value is an array
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsAscii()
function IsAscii(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsAscii.d.ts:12
Checks if the string contains ASCII chars only. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBase32()
function IsBase32(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBase32.d.ts:12
Check if a string is base32 encoded. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBase58()
function IsBase58(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBase58.d.ts:12
Checks if a string is base58 encoded. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBase64()
function IsBase64(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBase64.d.ts:13
Checks if a string is base64 encoded. If given value is not a string, then it returns false.
Parameters
options?
IsBase64Options
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBIC()
function IsBIC(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBIC.d.ts:12
Check if a string is a BIC (Bank Identification Code) or SWIFT code. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBoolean()
function IsBoolean(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsBoolean.d.ts:10
Checks if a value is a boolean.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBooleanString()
function IsBooleanString(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBooleanString.d.ts:12
Checks if a string is a boolean. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsBtcAddress()
function IsBtcAddress(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsBtcAddress.d.ts:12
Check if the string is a valid BTC address. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsByteLength()
function IsByteLength(
min,
max?,
validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsByteLength.d.ts:12
Checks if the string’s length (in bytes) falls in a range. If given value is not a string, then it returns false.
Parameters
min
number
max?
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsCreditCard()
function IsCreditCard(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsCreditCard.d.ts:12
Checks if the string is a credit card. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsCurrency()
function IsCurrency(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsCurrency.d.ts:13
Checks if the string is a valid currency amount. If given value is not a string, then it returns false.
Parameters
options?
IsCurrencyOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDataURI()
function IsDataURI(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsDataURI.d.ts:12
Check if the string is a data uri format. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDate()
function IsDate(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsDate.d.ts:10
Checks if a value is a date.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDateString()
function IsDateString(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsDateString.d.ts:11
Alias for IsISO8601 validator
Parameters
options?
IsISO8601Options
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDecimal()
function IsDecimal(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsDecimal.d.ts:13
Checks if the string is a valid decimal. If given value is not a string, then it returns false.
Parameters
options?
IsDecimalOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDefined()
function IsDefined(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsDefined.d.ts:10
Checks if value is defined (!== undefined, !== null).
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsDivisibleBy()
function IsDivisibleBy(num, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/number/IsDivisibleBy.d.ts:10
Checks if value is a number that’s divisible by another.
Parameters
num
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsEAN()
function IsEAN(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsEAN.d.ts:12
Check if the string is an EAN (European Article Number). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsEmail()
function IsEmail(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsEmail.d.ts:13
Checks if the string is an email. If given value is not a string, then it returns false.
Parameters
options?
IsEmailOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsEmpty()
function IsEmpty(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsEmpty.d.ts:10
Checks if given value is empty (=== ‘’, === null, === undefined).
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsEnum()
function IsEnum(entity, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsEnum.d.ts:10
Checks if a given value is the member of the provided enum.
Parameters
entity
object
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsEthereumAddress()
function IsEthereumAddress(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsEthereumAddress.d.ts:12
Check if the string is an Ethereum address using basic regex. Does not validate address checksums. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsFirebasePushId()
function IsFirebasePushId(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsFirebasePushId.d.ts:12
Checks if the string is a Firebase Push Id If given value is not a Firebase Push Id, it returns false
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsFQDN()
function IsFQDN(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsFQDN.d.ts:13
Checks if the string is a fully qualified domain name (e.g. domain.com). If given value is not a string, then it returns false.
Parameters
options?
IsFQDNOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsFullWidth()
function IsFullWidth(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsFullWidth.d.ts:12
Checks if the string contains any full-width chars. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsHalfWidth()
function IsHalfWidth(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsHalfWidth.d.ts:12
Checks if the string contains any half-width chars. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsHash()
function IsHash(algorithm, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsHash.d.ts:15
Check if the string is a hash of type algorithm. Algorithm is one of [‘md4’, ‘md5’, ‘sha1’, ‘sha256’, ‘sha384’, ‘sha512’, ‘ripemd128’, ‘ripemd160’, ‘tiger128’, ‘tiger160’, ‘tiger192’, ‘crc32’, ‘crc32b’]
Parameters
algorithm
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsHexadecimal()
function IsHexadecimal(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsHexadecimal.d.ts:12
Checks if the string is a hexadecimal number. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsHexColor()
function IsHexColor(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsHexColor.d.ts:12
Checks if the string is a hexadecimal color. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsHSL()
function IsHSL(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsHSL.d.ts:14
Check if the string is an HSL (hue, saturation, lightness, optional alpha) color based on CSS Colors Level 4 specification. Comma-separated format supported. Space-separated format supported with the exception of a few edge cases (ex: hsl(200grad+.1%62%/1)). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsIBAN()
function IsIBAN(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsIBAN.d.ts:12
Check if a string is a IBAN (International Bank Account Number). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsIdentityCard()
function IsIdentityCard(locale?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsIdentityCard.d.ts:17
Check if the string is a valid identity card code. locale is one of [‘ES’, ‘zh-TW’, ‘he-IL’, ‘ar-TN’] OR ‘any’. If ‘any’ is used, function will check if any of the locals match. Defaults to ‘any’. If given value is not a string, then it returns false.
Parameters
locale?
IdentityCardLocale
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsIn()
function IsIn(values, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsIn.d.ts:10
Checks if given value is in a array of allowed values.
Parameters
values
readonly any[]
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsInstance()
function IsInstance(targetType, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/object/IsInstance.d.ts:10
Checks if the value is an instance of the specified object.
Parameters
targetType
(…args) => any
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsInt()
function IsInt(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsInt.d.ts:10
Checks if value is an integer.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsIP()
function IsIP(version?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsIP.d.ts:13
Checks if the string is an IP (version 4 or 6). If given value is not a string, then it returns false.
Parameters
version?
IsIpVersion
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsIpOrFQDN()
function IsIpOrFQDN(validationOptions?): (object, propertyName) => void;
Defined in: packages/config/src/validators/is-ip-or-fqdn.validator.ts:3
Parameters
validationOptions?
ValidationOptions
Returns
(object, propertyName): void;
Parameters
object
object
propertyName
string
Returns
void
IsISBN()
function IsISBN(version?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISBN.d.ts:13
Checks if the string is an ISBN (version 10 or 13). If given value is not a string, then it returns false.
Parameters
version?
IsISBNVersion
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISIN()
function IsISIN(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISIN.d.ts:12
Checks if the string is an ISIN (stock/security identifier). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISO31661Alpha2()
function IsISO31661Alpha2(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISO31661Alpha2.d.ts:10
Check if the string is a valid ISO 3166-1 alpha-2 officially assigned country code.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISO31661Alpha3()
function IsISO31661Alpha3(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISO31661Alpha3.d.ts:10
Check if the string is a valid ISO 3166-1 alpha-3 officially assigned country code.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISO4217CurrencyCode()
function IsISO4217CurrencyCode(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/is-iso4217-currency-code.d.ts:10
Check if the string is a valid ISO 4217 officially assigned currency code.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISO8601()
function IsISO8601(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISO8601.d.ts:15
Checks if the string is a valid ISO 8601 date. If given value is not a string, then it returns false. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.
Parameters
options?
IsISO8601Options
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISRC()
function IsISRC(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISRC.d.ts:12
Check if the string is a ISRC. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsISSN()
function IsISSN(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsISSN.d.ts:13
Checks if the string is a ISSN. If given value is not a string, then it returns false.
Parameters
options?
IsISSNOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsJSON()
function IsJSON(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsJSON.d.ts:12
Checks if the string is valid JSON (note: uses JSON.parse). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsJWT()
function IsJWT(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsJWT.d.ts:12
Checks if the string is valid JWT token. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsLatitude()
function IsLatitude(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsLatitude.d.ts:10
Checks if a given value is a latitude.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsLatLong()
function IsLatLong(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsLatLong.d.ts:10
Checks if a value is string in format a “latitude,longitude”.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsLocale()
function IsLocale(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsLocale.d.ts:12
Check if the string is a locale. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsLongitude()
function IsLongitude(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsLongitude.d.ts:10
Checks if a given value is a longitude.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsLowercase()
function IsLowercase(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsLowercase.d.ts:12
Checks if the string is lowercase. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMACAddress()
Call Signature
function IsMACAddress(optionsArg?, validationOptionsArg?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMacAddress.d.ts:13
Check if the string is a MAC address. If given value is not a string, then it returns false.
Parameters
optionsArg?
IsMACAddressOptions
validationOptionsArg?
ValidationOptions
Returns
PropertyDecorator
Call Signature
function IsMACAddress(validationOptionsArg?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMacAddress.d.ts:14
Check if the string is a MAC address. If given value is not a string, then it returns false.
Parameters
validationOptionsArg?
ValidationOptions
Returns
PropertyDecorator
IsMagnetURI()
function IsMagnetURI(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMagnetURI.d.ts:12
Check if the string is a magnet uri format. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMilitaryTime()
function IsMilitaryTime(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMilitaryTime.d.ts:12
Checks if the string represents a time without a given timezone in the format HH:MM (military) If the given value does not match the pattern HH:MM, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMimeType()
function IsMimeType(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMimeType.d.ts:12
Check if the string matches to a valid MIME type format If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMobilePhone()
function IsMobilePhone(
locale?,
options?,
validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMobilePhone.d.ts:29
Checks if the string is a mobile phone number (locale is either an array of locales (e.g [‘sk-SK’, ‘sr-RS’]) OR one of [‘am-Am’, ‘ar-AE’, ‘ar-BH’, ‘ar-DZ’, ‘ar-EG’, ‘ar-IQ’, ar-JO’, ‘ar-KW’, ‘ar-SA’, ‘ar-SY’, ‘ar-TN’, ‘be-BY’, ‘bg-BG’, ‘bn-BD’, ‘cs-CZ’, ‘da-DK’, ‘de-DE’, ‘de-AT’, ‘el-GR’, ‘en-AU’, ‘en-CA’, ‘en-GB’, ‘en-GG’, ‘en-GH’, ‘en-HK’, ‘en-MO’, ‘en-IE’, ‘en-IN’, ‘en-KE’, ‘en-MT’, ‘en-MU’, ‘en-NG’, ‘en-NZ’, ‘en-PK’, ‘en-RW’, ‘en-SG’, ‘en-SL’, ‘en-UG’, ‘en-US’, ‘en-TZ’, ‘en-ZA’, ‘en-ZM’, ‘es-CL’, ‘es-CR’, ‘es-EC’, ‘es-ES’, ‘es-MX’, ‘es-PA’, ‘es-PY’, ‘es-UY’, ‘et-EE’, ‘fa-IR’, ‘fi-FI’, ‘fj-FJ’, ‘fo-FO’, ‘fr-BE’, ‘fr-FR’, ‘fr-GF’, ‘fr-GP’, ‘fr-MQ’, ‘fr-RE’, ‘he-IL’, ‘hu-HU’, ‘id-ID’, ‘it-IT’, ‘ja-JP’, ‘kk-KZ’, ‘kl-GL’, ‘ko-KR’, ‘lt-LT’, ‘ms-MY’, ‘nb-NO’, ‘ne-NP’, ‘nl-BE’, ‘nl-NL’, ‘nn-NO’, ‘pl-PL’, ‘pt-BR’, ‘pt-PT’, ‘ro-RO’, ‘ru-RU’, ‘sl-SI’, ‘sk-SK’, ‘sr-RS’, ‘sv-SE’, ‘th-TH’, ‘tr-TR’, ‘uk-UA’, ‘vi-VN’, ‘zh-CN’, ‘zh-HK’, ‘zh-MO’, ‘zh-TW’] If given value is not a string, then it returns false.
Parameters
locale?
MobilePhoneLocale
options?
IsMobilePhoneOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMongoId()
function IsMongoId(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMongoId.d.ts:12
Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsMultibyte()
function IsMultibyte(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsMultibyte.d.ts:12
Checks if the string contains one or more multibyte chars. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNegative()
function IsNegative(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/number/IsNegative.d.ts:10
Checks if the value is a negative number smaller than zero.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNotEmpty()
function IsNotEmpty(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsNotEmpty.d.ts:10
Checks if given value is not empty (!== ‘’, !== null, !== undefined).
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNotEmptyObject()
function IsNotEmptyObject(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/object/IsNotEmptyObject.d.ts:14
Checks if the value is valid Object & not empty. Returns false if the value is not an object or an empty valid object.
Parameters
options?
nullable?
boolean
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNotIn()
function IsNotIn(values, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsNotIn.d.ts:10
Checks if given value not in a array of allowed values.
Parameters
values
readonly any[]
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNumber()
function IsNumber(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsNumber.d.ts:18
Checks if a value is a number.
Parameters
options?
IsNumberOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsNumberString()
function IsNumberString(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsNumberString.d.ts:13
Checks if the string is numeric. If given value is not a string, then it returns false.
Parameters
options?
IsNumericOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsObject()
function IsObject(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsObject.d.ts:12
Checks if the value is valid Object. Returns false if the value is not an object.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsOctal()
function IsOctal(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsOctal.d.ts:12
Check if the string is a valid octal number. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsOptional()
function IsOptional(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/IsOptional.d.ts:6
Checks if value is missing and if so, ignores all validators.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsPassportNumber()
function IsPassportNumber(countryCode, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsPassportNumber.d.ts:12
Check if the string is a valid passport number relative to a specific country code. If given value is not a string, then it returns false.
Parameters
countryCode
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsPhoneNumber()
function IsPhoneNumber(region?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsPhoneNumber.d.ts:20
Checks if the string is a valid phone number. To successfully validate any phone number the text must include the intl. calling code, if the calling code wont be provided then the region must be set.
Parameters
region?
CountryCode
2 characters uppercase country code (e.g. DE, US, CH) for country specific validation. If text doesn’t start with the international calling code (e.g. +41), then you must set this parameter.
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsPort()
function IsPort(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsPort.d.ts:10
Check if the string is a valid port number.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsPositive()
function IsPositive(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/number/IsPositive.d.ts:10
Checks if the value is a positive number greater than zero.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsPostalCode()
function IsPostalCode(locale?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsPostalCode.d.ts:13
Check if the string is a postal code, in the specified locale. If given value is not a string, then it returns false.
Parameters
locale?
"any" | PostalCodeLocale
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsRFC3339()
function IsRFC3339(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsRFC3339.d.ts:12
Check if the string is a valid RFC 3339 date. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsRgbColor()
function IsRgbColor(includePercentValues?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsRgbColor.d.ts:14
Check if the string is a rgb or rgba color.
includePercentValues defaults to true. If you don’t want to allow to set rgb or rgba values with percents, like rgb(5%,5%,5%), or rgba(90%,90%,90%,.3), then set it to false.
If given value is not a string, then it returns false.
Parameters
includePercentValues?
boolean
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsSemVer()
function IsSemVer(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsSemVer.d.ts:12
Check if the string is a Semantic Versioning Specification (SemVer). If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsString()
function IsString(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/typechecker/IsString.d.ts:10
Checks if a given value is a real string.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsStrongPassword()
function IsStrongPassword(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsStrongPassword.d.ts:17
Checks if the string is a strong password. If given value is not a string, then it returns false.
Parameters
options?
IsStrongPasswordOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsSurrogatePair()
function IsSurrogatePair(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsSurrogatePair.d.ts:12
Checks if the string contains any surrogate pairs chars. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsTaxId()
function IsTaxId(locale?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/is-tax-id.d.ts:20
Checks if the string is a valid tax ID. Default locale is en-US.
If given value is not a string, then it returns false.
Supported locales: bg-BG, cs-CZ, de-AT, de-DE, dk-DK, el-CY, el-GR, en-CA, en-IE, en-US, es-ES, et-EE, fi-FI, fr-BE, fr-FR, fr-LU, hr-HR, hu-HU, it-IT, lv-LV, mt-MT, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, sk-SK, sl-SI, sv-SE.
Parameters
locale?
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsTimeZone()
function IsTimeZone(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsTimeZone.d.ts:12
Checks if the string represents a valid IANA timezone If the given value is not a valid IANA timezone, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsUppercase()
function IsUppercase(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsUppercase.d.ts:12
Checks if the string is uppercase. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsUrl()
function IsUrl(options?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsUrl.d.ts:13
Checks if the string is a url. If given value is not a string, then it returns false.
Parameters
options?
IsURLOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsUUID()
function IsUUID(version?, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsUUID.d.ts:13
Checks if the string is a UUID (version 3, 4 or 5). If given value is not a string, then it returns false.
Parameters
version?
UUIDVersion
validationOptions?
ValidationOptions
Returns
PropertyDecorator
IsVariableWidth()
function IsVariableWidth(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/IsVariableWidth.d.ts:12
Checks if the string contains variable-width chars. If given value is not a string, then it returns false.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Length()
function Length(
min,
max?,
validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/Length.d.ts:12
Checks if the string’s length falls in a range. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.
Parameters
min
number
max?
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Matches()
Call Signature
function Matches(pattern, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/Matches.d.ts:13
Checks if string matches the pattern. Either matches(‘foo’, /foo/i) If given value is not a string, then it returns false.
Parameters
pattern
RegExp
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Call Signature
function Matches(
pattern,
modifiers?,
validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/Matches.d.ts:14
Checks if string matches the pattern. Either matches(‘foo’, /foo/i) If given value is not a string, then it returns false.
Parameters
pattern
string
modifiers?
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Max()
function Max(maxValue, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/number/Max.d.ts:10
Checks if the value is less than or equal to the allowed maximum value.
Parameters
maxValue
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
MaxDate()
function MaxDate(date, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/date/MaxDate.d.ts:10
Checks if the value is a date that’s before the specified date.
Parameters
date
Date | () => Date
validationOptions?
ValidationOptions
Returns
PropertyDecorator
MaxLength()
function MaxLength(max, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/MaxLength.d.ts:12
Checks if the string’s length is not more than given number. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.
Parameters
max
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Min()
function Min(minValue, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/number/Min.d.ts:10
Checks if the value is greater than or equal to the allowed minimum value.
Parameters
minValue
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
MinDate()
function MinDate(date, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/date/MinDate.d.ts:10
Checks if the value is a date that’s after the specified date.
Parameters
date
Date | () => Date
validationOptions?
ValidationOptions
Returns
PropertyDecorator
MinLength()
function MinLength(min, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/MinLength.d.ts:12
Checks if the string’s length is not less than given number. Note: this function takes into account surrogate pairs. If given value is not a string, then it returns false.
Parameters
min
number
validationOptions?
ValidationOptions
Returns
PropertyDecorator
NotContains()
function NotContains(seed, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/string/NotContains.d.ts:12
Checks if the string does not contain the seed. If given value is not a string, then it returns false.
Parameters
seed
string
validationOptions?
ValidationOptions
Returns
PropertyDecorator
NotEquals()
function NotEquals(comparison, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/NotEquals.d.ts:10
Checks if value does not match (“!==”) the comparison.
Parameters
comparison
any
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Transform()
function Transform(transformFn, options?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/types/decorators/transform.decorator.d.ts:7
Defines a custom logic for value transformation.
Can be applied to properties only.
Parameters
transformFn
(params) => any
options?
TransformOptions
Returns
PropertyDecorator
Validate()
Call Signature
function Validate(constraintClass, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/Validate.d.ts:13
Performs validation based on the given custom validation class. Validation class must be decorated with ValidatorConstraint decorator.
Parameters
constraintClass
Function
validationOptions?
ValidationOptions
Returns
PropertyDecorator
Call Signature
function Validate(
constraintClass,
constraints?,
validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/Validate.d.ts:14
Performs validation based on the given custom validation class. Validation class must be decorated with ValidatorConstraint decorator.
Parameters
constraintClass
Function
constraints?
any[]
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ValidateBy()
function ValidateBy(options, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/ValidateBy.d.ts:11
Parameters
options
ValidateByOptions
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ValidateIf()
function ValidateIf(condition, validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/ValidateIf.d.ts:5
Ignores the other validators on a property when the provided condition function returns false.
Parameters
condition
(object, value) => boolean
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ValidateNested()
function ValidateNested(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/ValidateNested.d.ts:5
Objects / object arrays marked with this decorator will also be validated.
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator
ValidatePromise()
function ValidatePromise(validationOptions?): PropertyDecorator;
Defined in: node_modules/.pnpm/class-validator@0.14.3/node_modules/class-validator/types/decorator/common/ValidatePromise.d.ts:5
Resolve promise before validation
Parameters
validationOptions?
ValidationOptions
Returns
PropertyDecorator