JudoMat型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One mat: its number or name, its colour (any CSS colour that a hex code gives, default by position) and its contests in the order they will be fought.
インポート
import type { JudoMat } from "@johnmorrisdotca/taisen-brackets";
定義
interface JudoMat {
mat: string | number;
color?: string;
contests: readonly JudoQueueContest[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
mat | string | number | |
color (省略可) | string | undefined | |
contests | readonly JudoQueueContest[] |
例
import { judoMatQueue, type JudoMat } from "@johnmorrisdotca/taisen-brackets";
const mat: JudoMat = { mat: 2, color: "#0b6fb8", contests: [{ number: "G-2", white: { name: "Levan M.", code: "GEO" }, blue: { name: "Min-jae Seong", code: "KOR" } }] };
console.log(judoMatQueue(mat).includes("#0b6fb8"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。