Tag Archives: JSDoc

How to Write TypeScript Interfaces in JSDoc Comments – JavaScript Dev Feed

How to Write TypeScript Interfaces in JSDoc Comments I like writing web apps without any build step, just vanilla .js files. But I still like the type-checking that TypeScript provides. Thankfully TypeScript supports type-checking .js files via JSDoc comments. But how do you write out interfaces without a .ts file? Glad you asked. Interfaces in…

Read More

How to utilise JSDoc comment tags so that Visual Studio Code intellisense works great – JavaScript Dev Feed

How to utilise JSDoc comment tags so that Visual Studio Code intellisense works great Types in JavaScript JavaScript is a loosely typed and dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and re-assigned) values of all types: let foo = 42; // foo…

Read More