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
typescript compile error #3677
Comments
Having the same problem here! |
The same problem. |
Thanks, I could indeed reproduce the issue. This should be fixed by 50671d9. |
Can you release this version ASAP? Or let us target |
This seems worthy of a 3.0.1 release. |
3.0.1 is out! I've updated the TypeScript example here: https://github.com/socketio/socket.io/tree/master/examples/typescript |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want to:
Current behaviour
I have some troubles in compiling my code from typescript to javascript.
Compilation fails due to type error in namespace.d.ts and socket.d.ts。The Namespace and Socket class extends EventEmitter. However, they override 'emit' function and the signature is not compatible with the EventEmitter's emit function.
Is there any way to work around it?
Steps to reproduce (if the current behaviour is a bug)
Below is my tsconfig setting:
Here is the dependencies of the project:
when I run: 'tsc', I got the following error:
Setup
The text was updated successfully, but these errors were encountered: