Skip to content

Testing out how to use typescript annotations with dependencies

License

Notifications You must be signed in to change notification settings

RangerMauve/ts-dependency-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-dependency-test

Testing out how to use typescript annotations with dependencies

Problem:

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 the d.ts file could not be found for the module even though the index should be usable for getting types from annotations. 🤷

About

Testing out how to use typescript annotations with dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published