core
core copied to clipboard
Enable `noUncheckedIndexedAccess` Across Monorepo for Enhanced Type Safety
Description
This PR addresses #4729 by enabling the noUncheckedIndexedAccess TypeScript compiler option across the entire monorepo.
Changes Implemented:
- Set
"noUncheckedIndexedAccess": truein the roottsconfig.jsonto enforce stricter type checking at the project level. - Updated
tsconfig.packages.jsonto propagate this setting to all packages within the monorepo.
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.