Library

Hierarchy

  • Library

Implemented by

Index

Properties

Methods

Properties

converter

converter: Converter


describer

describer: Describer


validator

validator: Validator

Methods

debug

debug(isDebugging?: boolean): void

Parameters:

NameType
isDebugging?boolean

Returns: void

debug(isDebugging?: boolean): void

Parameters:

NameType
isDebugging?boolean

Returns: void


getConverter

getConverter(): Converter

Returns: Converter

getConverter(): Converter

Returns: Converter


getDescriber

getDescriber(): Describer

Returns: Describer

getDescriber(): Describer

Returns: Describer


getValidator

getValidator(): Validator

Returns: Validator

getValidator(): Validator

Returns: Validator


isInstanceOf

isInstanceOf(value: any, expectation: Expectation): boolean

Parameters:

NameType
valueany
expectationExpectation

Returns: boolean

isInstanceOf(value: any, expectation: Expectation): boolean

Parameters:

NameType
valueany
expectationExpectation

Returns: boolean


isValid

isValid(value: any, expectation: Expectation | Utility, isStrict?: boolean): boolean

Parameters:

NameType
valueany
expectationExpectation | Utility
isStrict?boolean

Returns: boolean

isValid(value: any, expectation: Expectation | Utility, isStrict?: boolean): boolean

Parameters:

NameType
valueany
expectationExpectation | Utility
isStrict?boolean

Returns: boolean


setConverter

setConverter(converter: Converter): void

Parameters:

NameType
converterConverter

Returns: void

setConverter(converter: Converter): void

Parameters:

NameType
converterConverter

Returns: void


setDescriber

setDescriber(describer: Describer): void

Parameters:

NameType
describerDescriber

Returns: void

setDescriber(describer: Describer): void

Parameters:

NameType
describerDescriber

Returns: void


setValidator

setValidator(validator: Validator): void

Parameters:

NameType
validatorValidator

Returns: void

setValidator(validator: Validator): void

Parameters:

NameType
validatorValidator

Returns: void


validate

validate(value: any, expectation: Expectation | Utility, isStrict?: boolean): boolean

Parameters:

NameType
valueany
expectationExpectation | Utility
isStrict?boolean

Returns: boolean

validate(value: any, expectation: Expectation | Utility, isStrict?: boolean): boolean

Parameters:

NameType
valueany
expectationExpectation | Utility
isStrict?boolean

Returns: boolean