Type alias ResultWithInput<Input, Result>

ResultWithInput<Input, Result>: {
    result: Result;
    resultInput: Input;
}

Type representing a result combined with the input that led to the result. Coupling input and result is important for the results of async processes.

Type Parameters

  • Input

    specifies the input type

  • Result

    specifies the result type

Type declaration

  • result: Result

    the received result

  • resultInput: Input

    the input that produced the result

Generated using TypeDoc