Skip to content

Commit

Permalink
fix(realtime): correct websocket type var constraint (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored and stainless-app[bot] committed Feb 13, 2025
1 parent 0ea7238 commit 0e1981a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beta/realtime/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface MessageEvent {
type _WebSocket =
typeof globalThis extends (
{
WebSocket: infer ws;
WebSocket: infer ws extends abstract new (...args: any) => any;
}
) ?
// @ts-ignore
Expand Down

0 comments on commit 0e1981a

Please sign in to comment.