-
-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(helper/websocket): allow custom events to be passed to generics #3616
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3616 +/- ##
==========================================
+ Coverage 89.74% 89.77% +0.02%
==========================================
Files 158 158
Lines 10094 10090 -4
Branches 2827 2825 -2
==========================================
- Hits 9059 9058 -1
+ Misses 1035 1032 -3 ☔ View full report in Codecov by Sentry. |
Unrelated, but I also added the missing test WebSocketPair's mock is incomplete, so it is slightly hardcoded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changing the type definition is a good idea! Thank you. |
…onojs#3616) * fix(helper/websocket): allow custom events to be passed to generics * chore: disable any * add tests * patch * test patch
Closes: #3610
Also, make the
onOpen
event, which is not available incloudflare-workers
, not included in the type.The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code