Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/content/docs/en/guides/upgrade-to/v6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,23 @@ function myLoader() {

<ReadMore>Learn more about [defining loader schema types](/en/reference/content-loader-reference/#the-loader-object).</ReadMore>

### Changed: TypeScript configuration
Comment thread
sarah11918 marked this conversation as resolved.
Outdated

<SourcePR number="15668" title="feat: typescript 6" />
Comment thread
florian-lefebvre marked this conversation as resolved.
Outdated

In Astro 5.x, TSConfig templates did not set `compilerOptions.types` and `compilerOptions.libReplacement`.

Astro 6.0 TSConfig templates now set `compilerOptions.types` to `["node"]` and `compilerOptions.libReplacement` to `false` to improve performance and compatibility with the [upcoming TypeScript 6.0](https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta) release.

#### What should I do?

If you face any TypeScript error when upgrading, follow TypeScript's guide:

- [`types` now defaults to `[]`](https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/#types-now-defaults-to-[])
- [Simple Default Changes](https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/#simple-default-changes)

<ReadMore>Read more about [TypeScript configuration in Astro](/en/guides/typescript/#setup).</ReadMore>

{/*
## Community Resources

Expand Down
Loading