It feels like I'm struggling with a simple task that is driving me crazy.
I have several TypeScript files with code that I want to export for an npm package. In order to enable auto-imports from npm packages, all function and constant types need to be specified in index.d.ts (if my understanding is correct).
My dilemma is this: how can I create a single .d.ts file that includes the types for all the functions and constants across multiple .ts files? Without this, I have to manually import the package; whereas with most other libraries, I can simply type the function name and an import suggestion will appear.