companyrest.blogg.se

Manual credit card validator
Manual credit card validator









manual credit card validator

is "true" or for IsNumericOptions)Ĭhecks if the string contains the string)Ĭhecks if the string not contains the if the string contains only letters if the string contains only letters and IsDecimalOptions)Ĭhecks if the string is a valid decimal value. String-type validation if a string is a boolean (e.g. Type validation if a value is a if the value is a if the string is a IsNumberOptions)Ĭhecks if the value is a if the value is an integer if the value is an object)Ĭhecks if the value is a number that's divisible by if the value is a positive number greater than if the value is a negative number smaller than number)Ĭhecks if the given number is greater than or equal to given number)Ĭhecks if the given number is less than or equal to given number.Ĭhecks if the value is a date that's after the specified Date)Ĭhecks if the value is a date that's before the specified date. This is the only decorator that ignores skipMissingProperties if given value is empty (= null, = undefined) and if so, ignores all the validators on the any)Ĭhecks if value not equal ("!=") if given value is empty (= '', = null, = if given value is not empty (!= '', != null, != any)Ĭhecks if value is in a array of allowed any)Ĭhecks if value is not in a array of disallowed values. Import from 'class-validator' isEmpty ( value ) isBoolean ( value ) Validation decorators DecoratorĬhecks if value is defined (!= undefined, != null).











Manual credit card validator