-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Write the library in TypeScript #1623
Comments
case in point, latest version of the types is: |
@lpinca that twitter thread is about writing I looked at the codebase. All you have to do is transpile src to lib: src -> lib using TS, it's easy to do |
I don't want to rewrite the lib in TypeScript, maintain type definitions, and add any additional transpile step, sorry. |
I respect the choice of not adding work to re-implement the library in typescript. But just wanted to correct that if the all the code is re-written in typescript, then there is no need to maintain type definitions separately. |
its possible that TS can target WebAssembly, so it might be a good idea :-) |
Yes, type definitions will be generated automatically at compile time. Just write ts and run |
I am looking for a WebSockets library written in TypeScript
https://www.quora.com/unanswered/Is-there-a-Websocket-library-for-Node-js-written-in-TypeScript
it looks like
@types/ws
exists, but since it's packaged separately, often the types become out-of-sync.The text was updated successfully, but these errors were encountered: