JudoAthlete型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One athlete on the scoreboard. Only name is needed.
インポート
import type { JudoAthlete } from "@johnmorrisdotca/taisen-brackets";
定義
interface JudoAthlete {
name: string;
code?: string;
flag?: string;
mark?: string;
coach?: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | |
code (省略可) | string | undefined | The country's three letters ( |
flag (省略可) | string | undefined | A country code for the |
mark (省略可) | string | undefined | A mark of your own (an image address or inline SVG) in place of a flag. |
coach (省略可) | string | undefined | The coach's name, written small under the code when |
例
import { judoScoreboard, type JudoAthlete } from "@johnmorrisdotca/taisen-brackets";
const white: JudoAthlete = { name: "Daiki Hoshino", code: "JPN", flag: "JP", coach: "A. Sato" };
console.log(judoScoreboard({ white, blue: { name: "Mathis Roussel", code: "FRA" } }).includes("Hoshino"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。