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 的回退错误检测路径。将 analyzer 的结果与 Node 和 TypeScript 对 import/require/default exports 的解析进行比较;完成的标准是该案例不再被报告为依赖于该 issue,同时真正的回退案例仍能被检测到。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js, typescript
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100