Skip to content

Commit

Permalink
fix(types): ensure compatibility with TypeScript < 4.5
Browse files Browse the repository at this point in the history
"import { type ... }" was added in TypeScript 4.5.

Reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/

Related:

- #86
- socketio/socket.io#3891
  • Loading branch information
darrachequesne committed Feb 22, 2024
1 parent 549156c commit ca397f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/cluster-adapter.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit ca397f3

Please # to comment.