Skip to content

Enable noUncheckedIndexedAccess Across Monorepo for Enhanced Type Safety #5848

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jobaodev
Copy link

Description

This PR addresses #4729 by enabling the noUncheckedIndexedAccess TypeScript compiler option across the entire monorepo.

Changes Implemented:

  • Set "noUncheckedIndexedAccess": true in the root tsconfig.json to enforce stricter type checking at the project level.
  • Updated tsconfig.packages.json to propagate this setting to all packages within the monorepo.

@mcmire
Copy link
Contributor

mcmire commented May 22, 2025

Hi @jobaodev, thanks for the PR. Unfortunately it's not so simple as enabling this option — we would have to handle all of the places where looking up keys could now return undefined.

You are free to do this but we probably need more of a systematic approach to enabling this option, perhaps one package at a time.

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.

2 participants