Conditional type evaluation not deferred when it depends on an implicitly-present type parameter #59450
Closed
1 task done
Labels
Milestone
Acknowledgement
Comment
I'm not sure if it's a bug, but it seems like it's inconsistency of generic type.
I expected
IsStringArray
is deferred in the function passed tof
like the. body ofg
, but evaluated asfalse
TS version: 5.5.3
Reproduction code: playground
(First I raised a question on stackoverflow, but now I think this question is more suitable here https://stackoverflow.com/questions/78801369/strange-behavior-of-generic-types-in-typescript)
The text was updated successfully, but these errors were encountered: