When using the “main” field of package.json for a Typescript NPM package, this documentation explains how to ship your types (as .d.ts files) alongside the payload exported JS file.
package.json also allows multiple entrypoints, multiple js files, to be specified using the “exports” field rather than “main”.
But in that case, how should the various .d.ts files of these various entrypoints be specified in package.json ?