diff --git a/apps/bff/src/infra/realtime/realtime.pubsub.ts b/apps/bff/src/infra/realtime/realtime.pubsub.ts index 6476e326..3a5de007 100644 --- a/apps/bff/src/infra/realtime/realtime.pubsub.ts +++ b/apps/bff/src/infra/realtime/realtime.pubsub.ts @@ -1,4 +1,5 @@ -import { Inject, Injectable, Logger, OnModuleDestroy, OnModuleInit } from "@nestjs/common"; +import { Inject, Injectable, Logger } from "@nestjs/common"; +import type { OnModuleDestroy, OnModuleInit } from "@nestjs/common"; import { Redis } from "ioredis"; import { getErrorMessage } from "@bff/core/utils/error.util.js"; import type { RealtimePubSubMessage } from "./realtime.types.js"; diff --git a/apps/bff/src/infra/realtime/realtime.types.ts b/apps/bff/src/infra/realtime/realtime.types.ts index 37964542..9a548fd8 100644 --- a/apps/bff/src/infra/realtime/realtime.types.ts +++ b/apps/bff/src/infra/realtime/realtime.types.ts @@ -1,5 +1,3 @@ -import type { MessageEvent } from "@nestjs/common"; - export interface RealtimeEventEnvelope { event: TEvent; data: TData; @@ -32,4 +30,5 @@ export interface RealtimeStreamOptions { heartbeatEvent?: string | null; } -export type RealtimeMessageEvent = MessageEvent; +// Note: NestJS MessageEvent is not a generic type in our setup (verbatimModuleSyntax + current Nest types). +// Keep this file purely as shared shape definitions.