acacode / acacode/swagger-typescript-api

Import declaration conflicts in generated modules when using --modular flag

Abierto
#542 0 comentarios 3 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
4.1k
Forks
436
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm using the Swagger pet store example as input with the `--modular` flag.

The generated modules are reporting the following type issues because the interface from `data-contracts.ts` has the same name as the class in the module.

> Individual declarations in merged declaration 'Pet' must be all exported or all local.ts (2395)

> Import declaration conflicts with local declaration of 'Pet'.ts (2440)

![image](https://github.com/acacode/swagger-typescript-api/assets/226882/a27557fd-23f7-4dff-9904-603cafc64c84)

I realize that the modules has ESLint disabled, however, these are typescript errors.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.