Skip to content

Commit

Permalink
fix(typings): do not expose browser-specific types
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Feb 4, 2023
1 parent c54e09d commit 4d6d95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export type DisconnectDescription =
| Error
| {
description: string;
context?: CloseEvent | XMLHttpRequest;
context?: unknown; // context should be typed as CloseEvent | XMLHttpRequest, but these types are not available on non-browser platforms
};

interface SocketReservedEvents {
Expand Down

0 comments on commit 4d6d95e

Please sign in to comment.