IMessageQueueConstructor type

Constructor contract every queue adapter must satisfy: it takes the queue name, optional partial options and an optional IMQMode, and yields an IMessageQueue.

IMQ.create() resolves an adapter of this shape from the registered vendor adapters and instantiates it.

Signature:

export type IMessageQueueConstructor = new (name: string, options?: Partial<IMQOptions>, mode?: IMQMode) => IMessageQueue;

References: IMQOptions, IMQMode, IMessageQueue

Remarks

The built-in adapters are registered through an explicit cast rather than structural assignment, so do not expect a clean assignment from a concrete queue class to this type.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.