Skip to content
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

Strict typing for sendMessage and onMessage everywhere #73

Open
mstephen19 opened this issue May 19, 2023 · 0 comments
Open

Strict typing for sendMessage and onMessage everywhere #73

mstephen19 opened this issue May 19, 2023 · 0 comments
Assignees
Labels
improvement An existing feature can be improved

Comments

@mstephen19
Copy link
Owner

mstephen19 commented May 19, 2023

We've got commented out a type named Acceptable, which encompasses all values that can be send via parentPort.postMessage and worker.postMessage without hitting a runtime error. Instead of any, this type should be used instead for the sendMessage and onMessage methods on various implementations.

@mstephen19 mstephen19 self-assigned this May 19, 2023
@mstephen19 mstephen19 added feature New feature or request improvement An existing feature can be improved and removed feature New feature or request labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An existing feature can be improved
Projects
None yet
Development

No branches or pull requests

1 participant