Replies: 3 comments 6 replies
-
I might be able to help can you link me to the issue and I'll give it a look. Edit Found the link. |
Beta Was this translation helpful? Give feedback.
-
Hi there, I've just started to use this library, and typescript can be improved a lot. I was wondering how I could contribute to it. I've noticed that this project has very good usage of jsdocs. Have you ever considered using the jsdoc as static type? If you are interested I can help set up, and improve some of the types via jsdoc. With that, we no longer would need to manually type all of https://github.com/djipco/webmidi/blob/master/typescript/webmidi.d.ts I am very happy to discuss this on discord or whatever suits you. |
Beta Was this translation helpful? Give feedback.
-
One issue is that TypeScript requires the use of many types that simply are not documented in JSDoc because they are not needed by vanilla JavaScript. Another problem is the name collision between the Web MIDI API types and the library's types. A knowledgeable TypeScript dev might be able to overcome all of these. I don't know. One thing that is for sure is that I want to keep the codebase (including jsdoc) free of TypeScript-specific content. So, it may be necessary to isolate TypeScript-specific stuff to its own area. The cleaner, the better. The simpler, the better.
If you mean use TypeScript to develop the library, the answer is no. However, I want to support TypeScript developers who want to use WEBMIDI.js in a TypeScript context.
This is great! You will have my support in doing so! |
Beta Was this translation helpful? Give feedback.
-
I really want to provide decent TyoeScript support for the library. However, I'm not a TypeScript developer and it has proven more challenging than I had expected. We currently have an outstanding issue for which I could really use some help. Any TypeScript experts around these parts?
Beta Was this translation helpful? Give feedback.
All reactions