You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile Error: Object is possibly 'undefined'. error
π Expected behavior
Typescript should be able to recognize the existence of the property with a check. This generates a lot of wrong errors in our codebase when the noUncheckedIndexedAccess compiler flag is enabled.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
noUncheckedIndexedAccess bracket access undefined
π Version & Regression Information
noUncheckedIndexedAccess
is available since 4.1β― Playground Link
Workbench Repro
π Actual behavior
Compile Error: Object is possibly 'undefined'. error
π Expected behavior
Typescript should be able to recognize the existence of the property with a check. This generates a lot of wrong errors in our codebase when the
noUncheckedIndexedAccess
compiler flag is enabled.The text was updated successfully, but these errors were encountered: