arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

feature: detect inferred type cannot be named error

オープン
#45 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature needs npm install
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。