github / github/eslint-plugin-github

Add TypeScript declaration file

オープン
#606 コメント 1 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
336
フォーク
67
平均マージ
1日 9時間
マージ済み PR(30日)
6

説明

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)
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by inspecting lib/index.js, the module path shown in the TypeScript error, to identify the exported API, including github.getFlatConfigs. Add a declaration file that represents those exports, then verify that the TypeScript language server no longer reports the missing declaration and can suggest getFlatConfigs.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, typescript
領域
tooling
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
50/100

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

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