When creating and publishing a library using typescript there are 2 options:
Generate declaration files d.ts
together with the bundled javascript file and then in package.json
point to it with:
"types": "./dist/mylib.d.ts"
Don't generate the declaration files and point directly to the source code in package.json
witt:
"types": "./src/index.ts"
What is the adventage of each one?