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

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

equals

integer

map

max

min

negative

optional

or

positive

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>

toCeiled

  • toCeiled(): this

toDefault

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

toFloored

  • toFloored(): this

toRounded

  • toRounded(precision?: LazyValue<number>): this

toTrunced

  • toTrunced(): this

validate

validateAsync

validator