– Are you using TypeScript?
– Please stop! Do yourself a favour and go learn TypeScript to use it in your project.
No problem, you just start slowly converting the code to TypeScript or you can create declarations (similar to a .h file for C/C++ projects) for your utility libraries that work just as well.
Enjoy and start using TypeScript!