Skip to content

Commit

Permalink
Even less breaking changes (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad authored Mar 14, 2024
1 parent fc2455e commit c2ef0b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/core/lib/queues/HandlerContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class HandlerContainer<
>[],
): Record<
string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
MessageHandlerConfig<MessagePayloadSchemas, ExecutionContext, PrehandlerOutput, any>
> {
return supportedHandlers.reduce(
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/lib/sns/AbstractSnsSqsConsumerMonoSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type NewSnsSqsConsumerOptions = NewSQSConsumerOptions<
export type NewSnsSqsConsumerOptionsMono<
MessagePayloadType extends object,
ExecutionContext,
PrehandlerOutput,
PrehandlerOutput = undefined,
> = NewSnsSqsConsumerOptions &
MonoSchemaQueueOptions<MessagePayloadType> &
CommonSQSConsumerOptionsMono<MessagePayloadType, ExecutionContext, PrehandlerOutput>
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/lib/sns/AbstractSnsSqsConsumerMultiSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type NewSnsSqsConsumerOptionsMulti<
export abstract class AbstractSnsSqsConsumerMultiSchema<
MessagePayloadSchemas extends object,
ExecutionContext,
PrehandlerOutput,
PrehandlerOutput = undefined,
> extends AbstractSqsConsumerMultiSchema<
MessagePayloadSchemas,
ExecutionContext,
Expand Down
9 changes: 4 additions & 5 deletions packages/sqs/lib/sqs/AbstractSqsConsumerMonoSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type {
PrehandlingOutputs,
} from '@message-queue-toolkit/core'
import type { ZodSchema } from 'zod'
import { undefined } from 'zod'

import type {
ExistingSQSConsumerOptions,
Expand All @@ -25,24 +24,24 @@ const DEFAULT_BARRIER_RESULT = {
export type CommonSQSConsumerOptionsMono<
MessagePayloadType extends object,
ExecutionContext,
PrehandlerOutput,
PrehandlerOutput = undefined,
> = {
prehandlers?: Prehandler<MessagePayloadType, ExecutionContext, PrehandlerOutput>[]
}

export type NewSQSConsumerOptionsMono<
MessagePayloadType extends object,
ExecutionContext,
PrehandlerOutput,
CreationConfigType extends SQSCreationConfig,
PrehandlerOutput = undefined,
CreationConfigType extends SQSCreationConfig = SQSCreationConfig,
> = NewSQSConsumerOptions<CreationConfigType> &
MonoSchemaQueueOptions<MessagePayloadType> &
CommonSQSConsumerOptionsMono<MessagePayloadType, ExecutionContext, PrehandlerOutput>

export type ExistingSQSConsumerOptionsMono<
MessagePayloadType extends object,
ExecutionContext,
PrehandlerOutput,
PrehandlerOutput = undefined,
QueueLocatorType extends SQSQueueLocatorType = SQSQueueLocatorType,
> = ExistingSQSConsumerOptions<QueueLocatorType> &
MonoSchemaQueueOptions<MessagePayloadType> &
Expand Down

0 comments on commit c2ef0b6

Please sign in to comment.