PatternValidator
Hierarchy
- PatternValidator
Implemented by
- AnyValidator
- ClassValidator
- CollectionIncludingValidator
- CollectionValidator
- CollectionWithinValidator
- EqualsValidator
- InstanceOfValidator
- IntegerValidator
- InterfaceValidator
- InternalValidator
- InternalValidator
- ListValidator
- LocaleStringValidator
- MaybeValidator
- NeverValidator
- OneOfValidator
- OptionalValidator
- TupleValidator
- UnknownValidator
- UnrecognizedValidator
- VoidValidator
- WhereValidator
Index
Methods
Methods
canValidate
▸ canValidate(expectation
: Expectation, isStrict?
: boolean): boolean
Parameters:
Name | Type |
---|---|
expectation | Expectation |
isStrict? | boolean |
Returns: boolean
▸ canValidate(expectation
: Expectation, isStrict?
: boolean): boolean
Parameters:
Name | Type |
---|---|
expectation | Expectation |
isStrict? | boolean |
Returns: boolean
validate
▸ validate(value?
: any, expectation?
: Expectation, validator?
: Validator): boolean
Parameters:
Name | Type |
---|---|
value? | any |
expectation? | Expectation |
validator? | Validator |
Returns: boolean
▸ validate(value?
: any, expectation?
: Expectation, validator?
: Validator): boolean
Parameters:
Name | Type |
---|---|
value? | any |
expectation? | Expectation |
validator? | Validator |
Returns: boolean