Skip to content

Commit ca397f3

Browse files
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: - #86 - socketio/socket.io#3891
1 parent 549156c commit ca397f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/cluster-adapter.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import {
2-
Adapter,
3-
type BroadcastFlags,
4-
type BroadcastOptions,
5-
type Room,
6-
} from "./index";
1+
import { Adapter } from "./index";
2+
import type { BroadcastFlags, BroadcastOptions, Room } from "./index";
73
import { debug as debugModule } from "debug";
84
import { randomBytes } from "crypto";
95

0 commit comments

Comments
 (0)