@@ -38,20 +38,18 @@ export type DeletionConfig = {
3838}
3939
4040type NewQueueOptions < CreationConfigType extends CommonCreationConfigType > = {
41- locatorConfig ?: never
42- creationConfig : CreationConfigType
41+ creationConfig ?: CreationConfigType
4342}
4443
4544type ExistingQueueOptions < QueueLocatorType extends object > = {
46- locatorConfig : QueueLocatorType
47- creationConfig ?: never
45+ locatorConfig ?: QueueLocatorType
4846}
4947
5048export type QueueOptions <
5149 CreationConfigType extends CommonCreationConfigType ,
5250 QueueLocatorType extends object ,
5351> = CommonQueueOptions &
54- ( NewQueueOptions < CreationConfigType > | ExistingQueueOptions < QueueLocatorType > )
52+ ( NewQueueOptions < CreationConfigType > & ExistingQueueOptions < QueueLocatorType > )
5553
5654export type QueuePublisherOptions <
5755 CreationConfigType extends CommonCreationConfigType ,
@@ -68,7 +66,8 @@ export type DeadLetterQueueOptions<
6866> = {
6967 deletionConfig ?: DeletionConfig
7068} & DeadLetterQueueIntegrationOptions &
71- ( NewQueueOptions < CreationConfigType > | ExistingQueueOptions < QueueLocatorType > )
69+ NewQueueOptions < CreationConfigType > &
70+ ExistingQueueOptions < QueueLocatorType >
7271
7372export type QueueConsumerOptions <
7473 CreationConfigType extends object ,
0 commit comments