describeRanking関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The ranking as a sentence, the drawing's description.
インポート
import { describeRanking } from "@johnmorrisdotca/taisen-brackets";
定義
function describeRanking(source: RankingSource, options?: Pick<RankingOptions, "locale" | "words" | "nameStyle" | "precision" | "ties" | "sort" | "rankStyle" | "rows" | "page">): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
source | RankingSource | The ranking. |
options (省略可) | Pick<RankingOptions, "locale" | "words" | "rows" | "nameStyle" | "precision" | "ties" | "sort" | "rankStyle" | "page"> | The language, the words, the name style and the rows. |
戻り値
string
The description.
例
import { describeRanking } from "@johnmorrisdotca/taisen-brackets";
console.log(describeRanking({ category: "U18 · Men -60 kg", entries: [
{ name: { surname: "Nakamura", given: "Kenji" }, club: "Coastal Pine Judo", flag: "CA-BC", points: 412.5, change: 1 },
{ name: { surname: "Brar", given: "Harpreet" }, club: "Salmonberry Judo Club", flag: "CA-BC", points: 398, change: -1 },
{ name: { surname: "Leclerc", given: "Mathieu" }, club: "Kestrel Valley Judo", flag: "CA-QC", points: 366.25, change: 4 },
] }));Ranking. U18 · Men -60 kg. 1, NAKAMURA Kenji, Coastal Pine Judo, 412.5 points, up 1. 2, BRAR Harpreet, Salmonberry Judo Club, 398 points, down 1. 3, LECLERC Mathieu, Kestrel Valley Judo, 366.25 points, up 4.出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。