Basing this off of my current setup.
Try creating the following folder structure:
Contents in foo/index.ts:
export interface Thing {
}
Contents in bar/index.ts:
Try using the appropriate code action to import Thing. The generated code is currently:
import { Thing } from "../foo/index";
The fix is correct, however, most people don't include index as part of their path when importing a module. I'd argue that TypeScript shouldn't either.
Basing this off of my current setup.
Try creating the following folder structure:
Contents in
foo/index.ts:Contents in
bar/index.ts:Try using the appropriate code action to import
Thing. The generated code is currently:The fix is correct, however, most people don't include
indexas part of their path when importing a module. I'd argue that TypeScript shouldn't either.