import-js/eslint-plugin-import
在 GitHub 查看Namespaced exports reported as duplicate identifiers
Open
#3,220 创建于 2025年11月21日
bughelp wantedtypescript
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
// 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.