"typeof" operator should remove wideningness #16337
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Source https://stackoverflow.com/questions/44421946/does-typescript-2-3-3-loose-type-information-on-array-spread
This code:
behaves differently from this code, which is quite surprising:
Once someone is using
typeof
, it seems very unlikely they want a widening type and we should revert to a non-widening form of the type.The text was updated successfully, but these errors were encountered: