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
The text was updated successfully, but these errors were encountered:
Kingwl
changed the title
auto import always choose the type declaration in the folder not top level
auto import always choose the type declaration in the folder that not top level
Jun 7, 2018
@Kingwl Assuming that the problem here was that there was a "main" field in the package.json referencing lib/index.js, but no typings field. If so, should be fixed by #24774.
TypeScript Version: 3.0.0-dev.201xxxxx
Search Terms:
Code
Expected behavior:
insert the code:
import { a } from 'xxx'
Actual behavior:
insert the code:
import { a } from 'xxx/lib'
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: