@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
23 lines (22 loc) • 570 B
TypeScript
type VoidCallback = () => void;
type OnErrorCallback = (error: Error) => void;
export declare const enum RmqStatus {
DISCONNECTED = "disconnected",
CONNECTED = "connected"
}
export declare const enum RmqEventsMap {
ERROR = "error",
DISCONNECT = "disconnect",
CONNECT = "connect"
}
/**
* RabbitMQ events map for the ampqlip client.
* Key is the event name and value is the corresponding callback function.
* @publicApi
*/
export type RmqEvents = {
error: OnErrorCallback;
disconnect: VoidCallback;
connect: VoidCallback;
};
export {};