arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
feature: detect inferred type cannot be named error
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I was thinking about doing something similar.
Basically what's need is to get the package, install the dependencies, and see if the types in the output files can be resolved or not.
This is especially problematic with `pnpm` with monorepo as the transient packages are located at the top level `./node_modules/.pnpm/...`.
For example:
```sh
# Dependency graph
- lib-a
- lib-b
- lib-c
```
```sh
# folder
- packages
- lib-a
- node_modules
- lib-b # symlink to /node_modules/.pnpm/lib-b/version-y
- node_modules
- .pnpm
- lib-b@version-y
- lib-c@version-x
```
If `lib-b` does not re-exports the type from `lib-c`, you will get Inferred type cannot be named error.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
この issue では、ファイル、テスト、エントリーポイントが指定されていません。まず pnpm モノレポのパッケージインストールと出力型の解決を追跡し、推論された型が、推移的依存関係の型が再エクスポートされていないために名前を付けられない場合を検出することを完了条件として定義してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100