Skip to content

amqpx v1.0.1


amqpx / index / MaybePromise

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

Released under the MIT License.