From 3e053482b3fa3f384ab71f24fec50703c12051ec Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Sat, 22 Jun 2024 13:15:23 +0300 Subject: [PATCH] Fix TS --- packages/core/lib/queues/AbstractQueueService.ts | 1 - packages/core/package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/lib/queues/AbstractQueueService.ts b/packages/core/lib/queues/AbstractQueueService.ts index fee95e7f..d2ad9850 100644 --- a/packages/core/lib/queues/AbstractQueueService.ts +++ b/packages/core/lib/queues/AbstractQueueService.ts @@ -117,7 +117,6 @@ export abstract class AbstractQueueService< messageTypeField: string }) { const messageSchemas = options.handlers.map((entry) => entry.schema) - // @ts-expect-error This should no longer be necessary in upcoming TypeScript updates, filter will narrow down the type const messageDefinitions: CommonEventDefinition[] = options.handlers .map((entry) => entry.definition) .filter((entry) => entry !== undefined) diff --git a/packages/core/package.json b/packages/core/package.json index e1ee505b..ae82aa3f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -46,7 +46,7 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-vitest": "0.4.1", "prettier": "^3.2.5", - "typescript": "^5.4.5", + "typescript": "^5.5.2", "vitest": "^1.6.0" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit",