Skip to content

Commit b5ccfd4

Browse files
authored
refactor(eio-client): improve transports type (#5188)
Related: #5187
1 parent 5d9a2d5 commit b5ccfd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/engine.io-client/lib/socket.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export interface SocketOptions {
8585
*
8686
* @default ['polling','websocket', 'webtransport']
8787
*/
88-
transports?: string[] | TransportCtor[];
88+
transports?:
89+
| ("polling" | "websocket" | "webtransport" | string)[]
90+
| TransportCtor[];
8991

9092
/**
9193
* Whether all the transports should be tested, instead of just the first one.

0 commit comments

Comments
 (0)