I'm currently dealing with an older typescript project that has numerous functions and interfaces spread out across multiple files. Other packages that depend on these exports are directly linked to the file in the directory.
My goal is to transition this dependency into a proper npm package, complete with an index.js and index.d.js. However, I'm finding it difficult to figure out what those two files should contain.
One specific challenge I'm facing is how to properly export both a type HttpHandler and its corresponding implementation httpHandler
It's important to note that for this package, there is no default export.
Any examples or suggestions? I'd greatly appreciate any guidance.