The not-so-new-anymore `@import` 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.

multiline.co/mment/2024/02/imp

0

If you have a fediverse account, you can quote this note from your own instance. Search https://front-end.social/users/ashur/statuses/116014809320092316 on your instance and quote it. (Note that quoting is not supported in Mastodon.)