Validator: { _default: undefined; isNull: (str: string, options?: IsEmptyOptions) => boolean; contains(str: string, elem: string): boolean; extend( name: string, fn: Function, ): { extend(name: string, fn: Function): ...; notEmpty(str: string): boolean; len(str: string, min: number, max: number): boolean; isUrl(str: string): boolean; isIPv6(str: string): boolean; ... 124 more ...; default: typeof validator; }
; is( str: string, pattern: string | RegExp, modifiers: string, ): null | RegExpMatchArray; isDate(dateString: string): boolean; isDecimal(str: string): boolean; isImmutable( ignoreValue: unknown, ignoreValidatorArgs: unknown, field: string, modelInstance: Model, ): boolean; isIPv4(str: string): boolean; isIPv6(str: string): boolean; isUrl(str: string): boolean; len(str: string, min: number, max: number): boolean; max(str: string, val: number): boolean; min(str: string, val: number): boolean; not(str: string, pattern: string | RegExp, modifiers: string): boolean; notContains(str: string, elem: string): boolean; notEmpty(str: string): boolean; notIn(str: string, values: string[]): boolean; notNull(val: unknown): val is {}; notRegex(str: string, pattern: string | RegExp, modifiers: string): boolean; regex( str: string, pattern: string | RegExp, modifiers: string, ): null | RegExpMatchArray;} = ... Type declaration
_default: undefined
isNull: (str: string, options?: IsEmptyOptions) => boolean
contains:function
contains(str: string, elem: string): boolean
extend:function
extend( name: string, fn: Function,): { extend(name: string, fn: Function): ...; notEmpty(str: string): boolean; len(str: string, min: number, max: number): boolean; isUrl(str: string): boolean; isIPv6(str: string): boolean; ... 124 more ...; default: typeof validator; }
Returns { extend(name: string, fn: Function): ...; notEmpty(str: string): boolean; len(str: string, min: number, max: number): boolean; isUrl(str: string): boolean; isIPv6(str: string): boolean; ... 124 more ...; default: typeof validator; }
is:function
is( str: string, pattern: string | RegExp, modifiers: string,): null | RegExpMatchArray Parameters
- str: string
- pattern: string | RegExp
- modifiers: string
Returns null | RegExpMatchArray
isDate:function
isDate(dateString: string): boolean
isDecimal:function
isDecimal(str: string): boolean
isImmutable:function
isImmutable( ignoreValue: unknown, ignoreValidatorArgs: unknown, field: string, modelInstance: Model,): boolean Parameters
- ignoreValue: unknown
- ignoreValidatorArgs: unknown
- field: string
- modelInstance: Model
Returns boolean
isIPv4:function
isIPv4(str: string): boolean
isIPv6:function
isIPv6(str: string): boolean
isUrl:function
isUrl(str: string): boolean
len:function
len(str: string, min: number, max: number): boolean Parameters
- str: string
- min: number
- max: number
Returns boolean
max:function
max(str: string, val: number): boolean
min:function
min(str: string, val: number): boolean
not:function
not(str: string, pattern: string | RegExp, modifiers: string): boolean Parameters
- str: string
- pattern: string | RegExp
- modifiers: string
Returns boolean
notContains:function
notContains(str: string, elem: string): boolean
notEmpty:function
notEmpty(str: string): boolean
notIn:function
notIn(str: string, values: string[]): boolean Parameters
- str: string
- values: string[]
Returns boolean
notNull:function
notNull(val: unknown): val is {}
notRegex:function
notRegex(str: string, pattern: string | RegExp, modifiers: string): boolean Parameters
- str: string
- pattern: string | RegExp
- modifiers: string
Returns boolean
regex:function
regex( str: string, pattern: string | RegExp, modifiers: string,): null | RegExpMatchArray Parameters
- str: string
- pattern: string | RegExp
- modifiers: string
Returns null | RegExpMatchArray