Skip to content

MaybePromise

type MaybePromise<T> = T | PromiseLike<T>;

Defined in: types.ts:4

A value that can be either synchronous (T) or a thenable (PromiseLike<T>).

Type Parameter
T