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

also

and

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

equals

map

noneOf

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

test

  • test(value: any): boolean

testAsync

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

toDefault

  • toDefault(defaultValue: LazyValue<any>): this

validate

validateAsync

validator