import-js/eslint-plugin-import

Namespaced exports reported as duplicate identifiers

Aberta

#3.220 aberto em 21 de nov. de 2025

 (0 comentário) (1 reação) (0 responsável)JavaScript (1.549 forks)batch import
bughelp wantedtypescript

Métricas do repositório

Stars
 (5.940 estrelas)
Métricas de merge de PR
 (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)

Description

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

Guia do colaborador