Fixed accidental undefined omissions in union props sourced from index types under noUncheckedIndexedAccess#61233
Conversation
…dex type under `noUncheckedIndexedAccess`
2964f64 to
464abcf
Compare
|
@typescript-bot test it |
|
Hey @jakebailey, the results of running the DT tests are ready. Everything looks the same! |
|
@jakebailey Here are the results of running the user tests with tsc comparing Everything looks good! |
|
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@jakebailey Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
| propTypes.push(type); | ||
| } | ||
| addRange(propTypes, indexTypes); | ||
| if (indexTypes && compilerOptions.noUncheckedIndexedAccess) { |
There was a problem hiding this comment.
Maybe I'm just not familiar with this part of the code, but how can this get away with being unconditionally added when this flag is enabled? Are there code paths above this that are missing this too?
There was a problem hiding this comment.
The preceding branch requires !indexTypes and this flag is only relevant to existing indexTypes.
1f21724 to
04b9c70
Compare
fixes #61225