Type alias MaybePromise<T>

MaybePromise<T>: Promise<T> | T

Wrap a type in an interface that can be either sync or async.

(Not quite useful in implements, since they are often just async or sync directly)

Type Parameters

  • T

Generated using TypeDoc