Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update TypeScript to 5.5 #759

Merged
merged 1 commit into from
Aug 22, 2024
Merged

chore: update TypeScript to 5.5 #759

merged 1 commit into from
Aug 22, 2024

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
@@ -13,6 +13,7 @@ import {
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!

@@ -102,6 +103,7 @@ test('CRUD operations', async (t) => {
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