describeEntryList関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The entry list as a sentence, the drawing's description.
インポート
import { describeEntryList } from "@johnmorrisdotca/taisen-brackets";
定義
function describeEntryList(source: EntryListSource, options?: Pick<EntryListOptions, "locale" | "words" | "nameStyle" | "sort" | "precision">): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
source | EntryListSource | The entry list. |
options (省略可) | Pick<EntryListOptions, "locale" | "words" | "nameStyle" | "precision" | "sort"> | The language, the words, the name style and the sort. |
戻り値
string
The description.
例
import { describeEntryList } from "@johnmorrisdotca/taisen-brackets";
console.log(describeEntryList({ category: "Men -66 kg", entries: [{ name: "Hoshino", rank: 3 }, { name: "Whitfield" }] }));Entry list. Men -66 kg. 1, Hoshino, Ranking 3. 2, Whitfield, NR.出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。