Maybe that's helpful for other devs using JSDoc: Import Types from other modules in JSDoc
https://grooovinger.com/notes/2026-02-12-import-types-from-other-modules
Maybe that's helpful for other devs using JSDoc: Import Types from other modules in JSDoc
https://grooovinger.com/notes/2026-02-12-import-types-from-other-modules
The not-so-new-anymore `@import` #JSDoc tag support that landed in TypeScript 5.5 makes it much, much nicer to import type definitions ✨
```
/** @import {Page, Post} from "../types.js" */
/**
* Build permalinks for pages and posts
* @param {Page | Post} entry
* @return {string}
*/
```
Great for keeping JSDoc blocks tidy, and especially nice when the same type is used multiple times throughout a single script.
https://multiline.co/mment/2024/02/importing-jsdoc-type-definitions/#typescript-5.5-or-newer
JSDocs в VSCode
Меня зовут Алекс Гусев. В этой публикации я очень кратко раскрываю, почему переход с IntelliJ IDEA (PhpStorm) на VSCode ломает привычную работу с JSDoc в JavaScript-проектах.
The Nuances of JavaScript Typing Using JSDoc, by @jaredwhite (@vanillaweb):
Perhaps it’s time to embrace real web open standard .js files which don’t require any build steps or tooling to execute properly, all while utilizing the power combo of JSDoc + tsc to gain all of the benefits of type hints in IDEs and type checking in CI.
JSDoc as the ideal typing tool for JavaScript. @vanillaweb argues that JavaScript, enhanced with JSDoc and TypeScript’s tsc for type checking, can deliver the same safety and clarity as TypeScript and without build complexity. He explains how to configure jsconfig.json and tsconfig.json, showing how JSDoc makes code self-documenting and flexible. #javascript #jsdoc
JSDoc как идеальный инструмент типизации для JavaScript. Джаред Уайт утверждает, что JavaScript в сочетании с JSDoc и проверкой типов через TypeScript tsc обеспечивает ту же безопасность и ясность, что и TypeScript, но без лишней сборки. Он описывает настройку jsconfig.json и tsconfig.json и показывает, как JSDoc делает код самодокументируемым и гибким. #js #jsdoc