Type alias ValidatedInputWithResult<Input, ValidationResult, Result, ValidationError, ResultError>

ValidatedInputWithResult<Input, ValidationResult, Result, ValidationError, ResultError>: {
    currentInput: Input | NoValueType;
    isValid: boolean;
    result: SafeEffectResult<Result, ResultError> | NoValueType;
    resultInput: Input | NoValueType;
    resultPending: boolean;
    validatedInput: Input | NoValueType;
    validationPending: boolean;
    validationResult: SafeEffectResult<ValidationResult, ValidationError> | NoValueType;
}

This specifies the type for the lazy combined-behavior provided as output-signal of the ValidatedInputWithResultFactory.

Type Parameters

  • Input

    specifies the input type for both, the validation-effect and the result-effect

  • ValidationResult

    specifies the result-type of the validation-effect

  • Result

    specifies the result-type of the result-effect

  • ValidationError

    specifies the error type of the validation-effect

  • ResultError

    specifies the error type of the result-effect

Type declaration

  • currentInput: Input | NoValueType

    current input (which might differ from the resultInput)

  • isValid: boolean

    only true if validationResult represents a valid state AND validationPending is false

  • result: SafeEffectResult<Result, ResultError> | NoValueType

    the current result (or NO_VALUE, if no result was received yet)

  • resultInput: Input | NoValueType

    the input that produced the current result (or NoValueType, if result is NO_VALUE)

  • resultPending: boolean

    indicates whether the result-effect is currently running

  • validatedInput: Input | NoValueType

    the input that produced the current validationResult (or NO_VALUE, if validationResult is NO_VALUE)

  • validationPending: boolean

    indicates whether the validation-effect is currently running

  • validationResult: SafeEffectResult<ValidationResult, ValidationError> | NoValueType

    the current validationResult (or NO_VALUE, if no validation-result was received yet)

Generated using TypeDoc