Testing out how to use typescript annotations with dependencies
tl;dr: Typescript doesn't have good support for JSDoc despite their claims
- TypeScript says it can infer types from JSDoc annotations
- In practice this only works within your project
- In this repo, we have an
example
module which exports a function with JSDoc annotations - Importing it from
./index.js
yields an error saying thed.ts
file could not be found for the module even though the index should be usable for getting types from annotations. 🤷