From a6f7b5c7332b41229f90717f5c4650a04fe1dbba Mon Sep 17 00:00:00 2001 From: Microwavekonijn Date: Sat, 31 Dec 2022 23:14:37 +0100 Subject: [PATCH] fix: exporting ChannelWrapper as a type without it getting emitted as metadata --- src/index.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index dd1d21aa..005880d8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,19 +4,15 @@ import AmqpConnectionManager, { ConnectionUrl, IAmqpConnectionManager, } from './AmqpConnectionManager.js'; -import { PublishOptions } from './ChannelWrapper.js'; +import CW, { PublishOptions } from './ChannelWrapper.js'; export type { AmqpConnectionManagerOptions, ConnectionUrl, IAmqpConnectionManager as AmqpConnectionManager, } from './AmqpConnectionManager.js'; -export type { - CreateChannelOpts, - default as ChannelWrapper, - SetupFunc, - Channel, -} from './ChannelWrapper.js'; +export type { CreateChannelOpts, SetupFunc, Channel } from './ChannelWrapper.js'; +export type ChannelWrapper = CW; import { Options as AmqpLibOptions } from 'amqplib';