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

Lines changed: 2 additions & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy