Skip to content

Conversation

@eranhirsch
Copy link

Since TypeScript 5.9 these are enabled by default in the recommended initial tsconfig.ts: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-9.html#minimal-and-updated-tsc---init

I think they should be enabled by default in the playground too as they are meaningful in the kind of typing experimentations that the playground is good for.

Copilot AI review requested due to automatic review settings December 30, 2025 18:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables two TypeScript compiler options by default in the playground sandbox: noUncheckedIndexedAccess and exactOptionalPropertyTypes. These options provide stricter type checking for indexed access operations and optional properties, aligning with TypeScript's recommended configuration practices.

Key Changes:

  • Changed noUncheckedIndexedAccess from false to true in default compiler options
  • Added exactOptionalPropertyTypes: true to default compiler options
  • Reformatted an inline TODO comment to a separate line for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant