types(react): count labels and nested label groups refuse what the runtime takes

オープン 初心者向け
#1,073 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript

調査の方向性

PartialLabels と mergeLabels を読み、labels.server の扱いを他の個数ラベルや dataImport のようなネストされたグループの扱いと比較してください。test/types/consumer.tsx に、単一テキスト、複数形、個別に省略可能なネストされたテキストの consumer type ケースを追加してください。これらの実行時にサポートされるラベル形式が型チェックを通れば完了です。

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

説明

area:react

PartialLabels in pivotkit-react types the count labels (rowsCount, rowsFiltered, drillCount, chartCategories, chartSeries) as Partial<{ one; other }>, and nested label groups outside server (such as dataImport) as complete objects.

At runtime mergeLabels takes a single text for a count, the few and many forms of languages such as Polish, and each nested text on its own. A typed host gets type errors for all three, although the report would work.

#1063 fixed this for labels.server (ServerLabels). Expected: the same for the other counts and nested groups, with cases in test/types/consumer.tsx.

主要言語
JavaScript
スター
1
フォーク
1
平均マージ
3時間 52分
マージ済み PR(30日)
466

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eizedev/pivotkit のほかの issue

eizedev/pivotkit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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