No changes to the source code, so everything should still work the same as before.
I just created a index.d.ts file containing types for all the exposed functions and classes.
I tried my best to understand the API and write the fitting types and jsdoc comments.
Motivation
I am planning to use this library in my project zakzak, where I use typescript. Since I would really like to have types when writing code, I thought I'd add them.
What I did
No changes to the source code, so everything should still work the same as before. I just created a index.d.ts file containing types for all the exposed functions and classes. I tried my best to understand the API and write the fitting types and jsdoc comments.
Motivation
I am planning to use this library in my project zakzak, where I use typescript. Since I would really like to have types when writing code, I thought I'd add them.