core icon indicating copy to clipboard operation
core copied to clipboard

Enable `noUncheckedIndexedAccess` Across Monorepo for Enhanced Type Safety

Open jobaodev opened this issue 9 months ago • 1 comments

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.

jobaodev avatar May 22 '25 15:05 jobaodev

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.

mcmire avatar May 22 '25 18:05 mcmire