Skip to content

Commit 4eb4bf2

Browse files
committed
Revert "refactor(microservices): Extract AmqpExchangeType"
This reverts commit d8f80ef.
1 parent d8f80ef commit 4eb4bf2

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

packages/microservices/external/rmq-url.interface.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,3 @@ export interface AmqplibQueueOptions {
6868
maxPriority?: number;
6969
[key: string]: any;
7070
}
71-
72-
type AmqpMainExchangeType = 'direct' | 'fanout' | 'topic' | 'headers';
73-
74-
/**
75-
* @publicApi
76-
*/
77-
export type AmqpExchangeType = AmqpMainExchangeType | (string & {});

packages/microservices/interfaces/microservice-configuration.interface.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { MqttClientOptions, QoS } from '../external/mqtt-options.interface';
1414
import { IORedisOptions } from '../external/redis.interface';
1515
import {
1616
AmqpConnectionManagerSocketOptions,
17-
AmqpExchangeType,
1817
AmqplibQueueOptions,
1918
RmqUrl,
2019
} from '../external/rmq-url.interface';
@@ -287,7 +286,7 @@ export interface RmqOptions {
287286
* Type of the exchange
288287
* @default 'topic'
289288
*/
290-
exchangeType?: AmqpExchangeType;
289+
exchangeType?: string;
291290
/**
292291
* Additional routing key for the topic exchange.
293292
*/

0 commit comments

Comments
 (0)