MaybePromise<T>: T | PromiseLike<T>

Return type for functions that are optionally asynchronous.

TODO - as currently defined MaybePromise of a Promise incorrectly wraps as a Promise of a Promise

Type Parameters

  • T = void