Although the title may be a bit confusing, it encapsulates my query in a succinct manner. So, here's what I'm aiming to achieve:
- I currently have an npm module written in JavaScript, not TypeScript.
- Some of the users of this module prefer using TypeScript, so it would be beneficial if I could offer type annotations for my JavaScript code.
- However, I am adamant about sticking to pure JavaScript and not transitioning to TypeScript.
Therefore, I am seeking a method for creating an external type declaration or some equivalent solution.
Is there a way to accomplish this? And if so, how can it be done?
I apologize if this question seems rudimentary to TypeScript enthusiasts; my lack of experience with TypeScript leaves me clueless on where to begin researching. Any guidance or direction regarding a terminology search would be greatly appreciated.