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
{{ message }}
Repository navigation
No object literal completions for type parameter constrained to mapped type #16136
changed the title [-]No object literal completions for object constrained to mapped type[/-][+]No object literal completions for type parameter constrained to mapped type[/+]on May 30, 2017
I believe that this is because {} fulfills the constraint so that we end up with an inference for T which causes us to give completions from {} instead of the constraint of T.
Activity
[-]No object literal completions for object constrained to mapped type[/-][+]No object literal completions for type parameter constrained to mapped type[/+]DanielRosenwasser commentedon Sep 19, 2017
I believe that this is because
{}fulfills the constraint so that we end up with an inference forTwhich causes us to give completions from{}instead of the constraint ofT.DanielRosenwasser commentedon Jul 25, 2025
Seems to work now - I feel like Andrew Branch (@andrewbranch) might have fixed this?