最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Import JSDOC type annotations from a JavaScript npm package - Stack Overflow

programmeradmin0浏览0评论

I have an npm package for NodeJS that is implemented in (plain and not compiled) JavaScript and uses JSDOC type annotations to type check the code using TypeScript and this works like a charm. When using the above package in another project by adding it as a dependency, it seems as if TypeScript would no longer use the JSDOC type annotation in the source of the package but rather demands a declaration file.

发布评论

评论列表(0)

  1. 暂无评论