Type Alias InferWaitableSuccessType<T>

InferWaitableSuccessType<T>: T extends Waitable<infer SuccessT, infer _FailureT>
    ? Exclude<SuccessT, undefined>
    : never

Infers the success type of the waitable

Type Parameters

  • T