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
Incorrect completion offered for export default of named function/class #16706
Expected behavior: default to be offered as the completion options.
Actual behavior: foo is offered as the completion option.
Fortunately, the type checker correctly expects default as the key. Calling a.default() will work, but a.foo() (as suggested by the completions) will error with "Property 'foo' does not exist on type".
Also possibly related is that import { /* request completion */ } from './a' does not list default as an option (it should), but it at least does not list foo.
Activity