github / github/eslint-plugin-github
Add TypeScript declaration file
- Ngôn ngữ chính
- JavaScript
- Star
- 336
- Fork
- 67
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 6
Mô tả
In order to make the TypeScript language server see what actually is inside `eslint-plugin-github`, and to correctly suggest `github.getFlatConfigs`, I would like to request the addition of a declaration file.
```console
Could not find a declaration file for module 'eslint-plugin-github'. '/Users/robin/Sites/eslint-config-sweet/node_modules/eslint-plugin-github/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/eslint-plugin-github` if it exists or add a new declaration (.d.ts) file containing `declare module 'eslint-plugin-github';`ts(7016)
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra lib/index.js, đường dẫn mô-đun được hiển thị trong lỗi TypeScript, để xác định API được export, bao gồm github.getFlatConfigs. Thêm một tệp khai báo đại diện cho các export đó, sau đó xác minh rằng máy chủ ngôn ngữ TypeScript không còn báo cáo khai báo bị thiếu và có thể gợi ý getFlatConfigs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 50/100