Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected conditionalValidationDefinitions

conditionalValidationDefinitions: ValidationDefinition[] = []

Protected immutableMode

immutableMode: boolean = true

Protected sanitizerDefinitions

sanitizerDefinitions: SanitizerDefinition[] = []

Protected validationDefinitions

validationDefinitions: ValidationDefinition[] = []

Methods

Protected addConditionalValidationDefinition

Protected addSanitizerDefinition

Protected addValidationDefinition

alpha

alphaDashes

alphaNumeric

alphaNumericDashes

alphaNumericUnderscores

alphaUnderscores

also

and

between

Protected clone

  • clone(): this

Protected cloneInstance

  • cloneInstance(): this

Protected customSanitizeBehavior

  • customSanitizeBehavior<TValue, TSanitizedValue>(value: TValue): TSanitizedValue

Protected customSanitizeBehaviorAsync

  • customSanitizeBehaviorAsync<TValue, TSanitizedValue>(value: TValue): Promise<TSanitizedValue>

Protected customTestingBehavior

  • customTestingBehavior(value: any, testResult: boolean): boolean

Protected customTestingBehaviorAsync

  • customTestingBehaviorAsync(value: any, testResult: boolean): Promise<boolean>

Protected customValidationBehavior

Protected customValidationBehaviorAsync

date

dateAfter

dateAfterOrSame

dateBefore

dateBeforeOrSame

dateBetween

dateBetweenOrSame

dateTime

email

endsWith

equals

includes

length

map

matches

max

min

noneOf

numeric

omits

oneOf

optional

or

Protected removeValidationDefinitionsOfType

required

sanitize

  • sanitize<TValue, TSanitizedValue>(value: TValue): TSanitizedValue

sanitizeAndTest

  • sanitizeAndTest<TValue, TSanitizedValue>(value: any): [boolean, TSanitizedValue]

sanitizeAndTestAsync

  • sanitizeAndTestAsync<TValue, TSanitizedValue>(value: any): Promise<[boolean, TSanitizedValue]>

sanitizeAndValidate

  • sanitizeAndValidate<TValue, TSanitizedValue>(value: any): [ValidationError[] | undefined, TSanitizedValue]

sanitizeAndValidateAsync

  • sanitizeAndValidateAsync<TValue, TSanitizedValue>(value: any): Promise<[ValidationError[] | undefined, TSanitizedValue]>

sanitizeAsync

  • sanitizeAsync<TValue, TSanitizedValue>(value: TValue): Promise<TSanitizedValue>

sanitizer

Protected skipClone

  • skipClone(fn: () => void): void

startsWith

test

  • test(value: any): boolean

testAsync

  • testAsync(value: any): Promise<boolean>

time

timeAfter

timeAfterOrSame

timeBefore

timeBeforeOrSame

timeBetween

timeBetweenOrSame

toCamelCase

  • toCamelCase(): this

toCapitalized

  • toCapitalized(): this

toConstantCase

  • toConstantCase(): this

toDefault

  • toDefault(defaultValue?: LazyValue<string>): this

toKebabCase

  • toKebabCase(): this

toLowerCase

  • toLowerCase(): this

toSnakeCase

  • toSnakeCase(): this

toTrimmed

  • toTrimmed(): this

toUpperCase

  • toUpperCase(): this

url

validate

validateAsync

validator