-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
TypeScript Version: 3.8.1-rc
Search Terms: auto import index
Code
// tsconfig.json
{
"compilerOptions": {
"module": "commonjs" // ensures `importModuleSpecifierEnding` defaults to `Ending.Minimal`
}
}
// a/index.ts
export const aIndex = 0;
// a.ts
export {}
// index.ts
aIndex/* auto-import here */
Expected behavior:
Module specifier from auto-import is "./a/index"
Actual behavior:
Module specifier is "./a"
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone