Skip to content

Conversation

EvanHahn
Copy link
Contributor

Notably for us, TypeScript 5.5 introduces the @import JSDoc tag, which we can start using.

This required us to upgrade Typedoc and fix a small type error.

Notably for us, TypeScript 5.5 introduces the [`@import` JSDoc tag][0],
which we can start using.

This required us to upgrade Typedoc and fix a small type error.

[0]: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#the-jsdoc-import-tag
import { round } from './utils.js'
import { generate } from '@mapeo/mock-data'
import { setTimeout as delay } from 'timers/promises'
/** @import { MapeoDoc } from '@mapeo/schema' */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@import is now possible with TS 5.5!

const project = await manager.getProject(projectId)
/** @type {any[]} */
const updates = []
/** @type {Promise<MapeoDoc>[]} */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why this was required as part of the upgrade, but it was easy to fix.

@EvanHahn EvanHahn requested a review from achou11 August 22, 2024 13:52
@EvanHahn EvanHahn merged commit 794fb38 into main Aug 22, 2024
7 checks passed
@EvanHahn EvanHahn deleted the typescript5.5 branch August 22, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants