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

Emit returns a weird type so union types no longer compile #3844

Closed
solomon23 opened this issue Mar 17, 2021 · 1 comment
Closed

Emit returns a weird type so union types no longer compile #3844

solomon23 opened this issue Mar 17, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@solomon23
Copy link
Contributor

solomon23 commented Mar 17, 2021

Describe the bug
this used to compile in typescript but won't in 4.0

(channel ? io.to(channel) : io).emit("stuff", message);

#3843

@solomon23 solomon23 added the bug Something isn't working label Mar 17, 2021
darrachequesne pushed a commit that referenced this issue Mar 18, 2021
```
(channel ? io.to(channel) : io).emit("stuff", message);
```

would no longer compile.

Related: #3844
@darrachequesne
Copy link
Member

This should be fixed by 1a72ae4. Thanks.

@darrachequesne darrachequesne added this to the 4.0.1 milestone Mar 31, 2021
dzad pushed a commit to dzad/socket.io that referenced this issue May 29, 2023
```
(channel ? io.to(channel) : io).emit("stuff", message);
```

would no longer compile.

Related: socketio#3844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants