arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
feature: detect inferred type cannot be named error
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Issue không nêu tên tệp, kiểm thử hoặc điểm vào. Hãy bắt đầu bằng cách lần theo quá trình cài đặt package và phân giải kiểu đầu ra cho các monorepo pnpm, sau đó xác định việc hoàn tất là phát hiện khi một kiểu được suy luận không thể được đặt tên vì kiểu của một dependency bắc cầu không được re-export.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 20/100