acacode / acacode/swagger-typescript-api

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

オープン
#542 コメント 0 件 リアクション 3 件 担当者 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 を短くまとめたダイジェスト。