Type alias RecoveryFunction<T>

RecoveryFunction<T>: ((failure) => SuccessInfo<T> | Partial<FailureInfo> | null)

Function used to recover from a failure. The kind, reason, and value fields of the result are used to determine the new parser success state. You can return a falsy value to indicate nothing should change.

Type Parameters

  • T

Type declaration