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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
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 |