import-js/eslint-plugin-import

Namespaced exports reported as duplicate identifiers

Open

Aperta il 21 nov 2025

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)JavaScript (4946 star) (1540 fork)batch import
bughelp wantedtypescript

Descrizione

// 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.

Guida contributor