arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Incorrect fallback bug detection
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
For a package like this:
```ts
// package.json
{
"name": "some-pkg",
"version": "0.0.0",
"exports": {
".": {
"import": {},
"require": {},
"default": "./index.js"
}
}
}
// index.js
console.log('a')
// index.d.ts
export {};
```
Importing it works in Node (and TypeScript) but arethetypeswrong reports that it's relying on https://github.com/microsoft/TypeScript/issues/50762 when it's not since TypeScript is doing the correct thing in this case and working like Node.
(of course it makes no sense to do what's in the example, it's just to illustrate the problem)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
issue に示されている package.json、index.js、index.d.ts のレイアウトでレポートを再現し、TypeScript issue #50762 をフラグするフォールバックのバグ検出パスを追跡します。アナライザーの結果を、Node と TypeScript による import/require/default exports の解決結果と比較します。このケースがその issue に依存しているものとして報告されなくなり、実際のフォールバックケースは引き続き検出されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100