JudoPodium型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The medallists of a judo tournament, as far as it has been fought.
インポート
import type { JudoPodium } from "@johnmorrisdotca/taisen-brackets";
定義
interface JudoPodium {
gold: Team | null;
silver: Team | null;
bronze: Team[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
gold | Team | null | |
silver | Team | null | |
bronze | Team[] | The two bronze medallists: the winners of the bronze medal contests, or the losing semi-finalists of a direct knockout. Only those decided. |
例
import { judoPodium, type JudoPodium, advanceWinners, judoBracket } from "@johnmorrisdotca/taisen-brackets";
const { matchups } = judoBracket(["Haru", "Marc", "Levan", "Min"].map((name) => ({ id: name, name })));
const podium: JudoPodium = judoPodium(advanceWinners(matchups));
console.log(podium.gold, podium.bronze.length);null 0出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。