Core
Namespace: Fable.Validation
Nested types and modules
Type | Description |
FieldInfo<'T, 'T0, 'E> | |
ValidateResult<'T> | |
Validator<'E> |
Module | Description |
ValidateRegexes |
Functions and values
Function or value | Description |
all tester
Signature: tester:(Validator<'E> -> 'T) -> Result<'T,Map<string,'E list>>
Type parameters: 'E, 'T |
[src]
validate all fields and return a custom type, |
allAsync tester
Signature: tester:(Validator<'E> -> Async<'T>) -> Async<Result<'T,Map<string,'E list>>>
Type parameters: 'E, 'T |
[src] |
fast tester
Signature: tester:(Validator<'E> -> 'T) -> Result<'T,Map<string,'E list>>
Type parameters: 'E, 'T |
[src]
Exit after first error occurred and return a custom type |
fastAsync tester
Signature: tester:(Validator<'E> -> Async<'T>) -> Async<Result<'T,Map<string,'E list>>>
Type parameters: 'E, 'T |
[src] |
isValid
Signature: ('T0 -> bool) -> 'E -> FieldInfo<'T,'T0,'E> -> FieldInfo<'T,'T0,'E>
Type parameters: 'T, 'T0, 'E |
[src]
IsValid helper from Validator method for custom rule functions, you can also extend Validator class directly. |
isValidAsync
Signature: ('T -> Async<bool>) -> 'E -> Async<FieldInfo<'T0,'T,'E>> -> Async<FieldInfo<'T0,'T,'E>>
Type parameters: 'T, 'T0, 'E |
[src]
IsValidAsync helper from Validator method for custom rule functions, you can also extend Validator class directly. |
isValidOpt
Signature: ('T0 -> ValidateResult<'T1>) -> 'E -> FieldInfo<'T,'T0,'E> -> FieldInfo<'T,'T1,'E>
Type parameters: 'T, 'T0, 'T1, 'E |
[src]
IsValidOpt helper from Validator method for custom rule functions, you can also extend Validator class directly. |
isValidOptAsync
Signature: ('T0 -> Async<ValidateResult<'T1>>) -> 'E -> Async<FieldInfo<'T,'T0,'E>> -> Async<FieldInfo<'T,'T1,'E>>
Type parameters: 'T, 'T0, 'T1, 'E |
[src]
IsValidOptAsync helper from Validator method for custom rule functions, you can also extend Validator class directly. |
single tester
Signature: tester:(Validator<'E> -> 'T) -> Result<'T,'E list>
Type parameters: 'E, 'T |
[src]
Validate single value |
singleAsync tester
Signature: tester:(Validator<'E> -> Async<'T>) -> Async<Result<'T,'E list>>
Type parameters: 'E, 'T |
[src]
Validate single value asynchronize |
validateAsync all tester
Signature: all:bool -> tester:(Validator<'E> -> Async<'T>) -> Async<Result<'T,Map<string,'E list>>>
Type parameters: 'E, 'T |
[src] |
validateSync all tester
Signature: all:bool -> tester:(Validator<'E> -> 'T) -> Result<'T,Map<string,'E list>>
Type parameters: 'E, 'T |
[src] |