reactjs / reactjs/react-docgen
Typescript support for defining component Interface through React interface
オープン
まだ誰も着手していません。
bug
typescript
- 主要言語
- TypeScript
- スター
- 3.8k
- フォーク
- 316
- 平均マージ
- 5時間 7分
- マージ済み PR(30日)
- 4
説明
I'm playing around with the playground and noticed that if you type your component in this way const MyComponent: React.FC<IProps> = .., react-docgen doesn't pick up the interface in IProps.


I'm curious to know if there's a specific reason for this, and if support for this might be on the roadmap.
Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
const MyComponent: React.FC<IProps> = ... を使った playground の例から始め、現在認識されているコンポーネント形式と比較します。react-docgen が TypeScript インターフェース参照をどのように処理するかを追跡し、IProps インターフェースが取得され、生成されたドキュメントで公開されていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- documentation, tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100