From ca397f3afe06ed9390db52b70a506a9721e091d8 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Thu, 22 Feb 2024 07:54:48 +0100 Subject: [PATCH] fix(types): ensure compatibility with TypeScript < 4.5 "import { type ... }" was added in TypeScript 4.5. Reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/ Related: - https://github.com/socketio/socket.io-adapter/issues/86 - https://github.com/socketio/socket.io/issues/3891 --- lib/cluster-adapter.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/cluster-adapter.ts b/lib/cluster-adapter.ts index 8858d0e..8ade055 100644 --- a/lib/cluster-adapter.ts +++ b/lib/cluster-adapter.ts @@ -1,9 +1,5 @@ -import { - Adapter, - type BroadcastFlags, - type BroadcastOptions, - type Room, -} from "./index"; +import { Adapter } from "./index"; +import type { BroadcastFlags, BroadcastOptions, Room } from "./index"; import { debug as debugModule } from "debug"; import { randomBytes } from "crypto";