Skip to content

Commit

Permalink
refactor(eio-client): improve transports type (#5188)
Browse files Browse the repository at this point in the history
Related: #5187
  • Loading branch information
nayounsang authored Sep 14, 2024
1 parent 5d9a2d5 commit b5ccfd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/engine.io-client/lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export interface SocketOptions {
*
* @default ['polling','websocket', 'webtransport']
*/
transports?: string[] | TransportCtor[];
transports?:
| ("polling" | "websocket" | "webtransport" | string)[]
| TransportCtor[];

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

0 comments on commit b5ccfd4

Please sign in to comment.