Did you know you can use TypeScript type definitions in plain JavaScript without a build step?
In this video, I show you a technique to import TypeScript types directly into your JSDoc comments using @typedef — giving you the best of both worlds: type safety without a full TypeScript buy-in.
What you'll learn:
→ How to use @typedef in JSDoc for custom types
→ The hidden trick: importing TypeScript types in JSDoc
→ How to get IDE autocompletion and type checking in plain JS files
Read the full blog post: https://andi1984.dev/posts/typescript...
#TypeScript #JavaScript #JSDoc #WebDev #CodingTips