Type Alias: MaybePromise<T>
MaybePromise<
T> =Promise<T> |T
Defined in: src/types.ts:5
A value that is either already resolved (T) or wrapped in a Promise<T>. Used throughout the library to accept both synchronous and asynchronous callbacks.
Type Parameters
| Type Parameter |
|---|
T |