Unexpected type error for accessing known existent members in a ReadonlyArray with noUncheckedIndexedAccess #46922
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Bug Report
π Search Terms
non-existent members, ReadonlyArray
Referenced #13778 (comment) .
π Version & Regression Information
noUncheckedIndexedAccess
was introduced in 4.1.β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
It returned
number | undefined
type for all members of the ReadonlyArray.π Expected behavior
Expected known members to be typed
number
.The text was updated successfully, but these errors were encountered: