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
On top of that the initial autocompletion for firstKey suggests that it will be of the union type - it just becomes string after the firstKey is being added to the binding pattern and when it becomes part of the contextual node~
Ah, so this is the test case that would have caught that we really did need to do something special in getTypeFromBindingElement. No test failed when I removed what I thought was redundant code, but it turns out that this was that case.
Bug Report
π Search Terms
Generics completion is now weaker.
π Version & Regression Information
This changed between versions 4.7.4 and 4.8.2
β― Playground Link
π» Code
π Actual behavior
4.8.2 firstKey type of
string
π Expected behavior
firstKey type of
"aa" | "bb"
The text was updated successfully, but these errors were encountered: