import-js/eslint-plugin-import
GitHub で見るNamespaced exports reported as duplicate identifiers
Open
#3,220 opened on 2025年11月21日
bughelp wantedtypescript
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
// AB.ts
export type A = {};
export type B = {};
// ABFeature.ts
export type * as AB from "./AB.ts";
// foo.ts
export type A = {};
// index.ts
export * from "ABFeature.ts"; // Error: duplicate identifier `A`
export * from "foo.ts"; // Error: duplicate identifier `A`
There are no duplicate identifiers. Symbol A can't be accessed through ABFeature.ts, and can only be accessed as AB.A.