JudoCardContest型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the contest card shows: the two athletes and the header. The scores and the clock of a JudoContest are not drawn.
インポート
import type { JudoCardContest } from "@johnmorrisdotca/taisen-brackets";
定義
type JudoCardContest = Pick<JudoContest, "white" | "blue" | "weight" | "round" | "mat" | "contest">;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
round (省略可) | string | undefined | |
white | JudoAthlete | |
blue | JudoAthlete | |
weight (省略可) | string | undefined | The weight class as a heading ( |
mat (省略可) | string | number | undefined | |
contest (省略可) | string | number | undefined |
例
import { judoContestCard, type JudoCardContest } from "@johnmorrisdotca/taisen-brackets";
const contest: JudoCardContest = { white: { name: "Daiki Hoshino", code: "JPN" }, blue: { name: "Mathis Roussel", code: "FRA" }, weight: "Men -66 kg", mat: 1 };
console.log(judoContestCard(contest).startsWith("<svg"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。