MaybePromise: {
    isThenable: (<T>(value) => value is PromiseLike<T>);
    map: (<T, R, R2>(value, mapValue, mapError?) => MaybePromise<R | R2>);
}

Type declaration

  • isThenable: (<T>(value) => value is PromiseLike<T>)
      • <T>(value): value is PromiseLike<T>
      • Returns if a value is like a thenable.

        Type Parameters

        • T

        Parameters

        Returns value is PromiseLike<T>

  • map: (<T, R, R2>(value, mapValue, mapError?) => MaybePromise<R | R2>)

Generated using TypeDoc