Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • TValue

Hierarchy

Implements

Index

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 Abstract cloneInstance

  • cloneInstance(): this

Protected customSanitizeBehavior

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

    • TValue

    • TSanitizedValue

    Parameters

    • value: TValue

    Returns TSanitizedValue

Protected customSanitizeBehaviorAsync

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

    • TValue

    • TSanitizedValue

    Parameters

    • value: TValue

    Returns Promise<TSanitizedValue>

Protected customTestingBehavior

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

    • value: any
    • testResult: boolean

    Returns boolean

Protected customTestingBehaviorAsync

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

    • value: any
    • testResult: boolean

    Returns Promise<boolean>

Protected customValidationBehavior

Protected customValidationBehaviorAsync

map

or

Protected removeValidationDefinitionsOfType

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
  • Parameters

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

    Returns void

test

  • test(value: any): boolean

testAsync

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

validate

validateAsync

validator