When using Typescript, you can utilize the "declaration": true"
option in tsconfig to automatically generate d.ts files from your existing Typescript code. Although they may not be as concise as manually written ones, I am curious if there is any downside to depending on these since they appear to be fairly accurate.
Edit: We are currently developing a library using Typescript.