acacode / acacode/swagger-typescript-api

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

未關閉
#542 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
4.1k
分支
436
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。