Reference · Draw a bracket, a table or a road to the final
JudoMattype
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 it
import type { JudoMat } from "@johnmorrisdotca/taisen-brackets";
Definition
interface JudoMat {
mat: string | number;
color?: string;
contests: readonly JudoQueueContest[];
}
Members
| Name | Type | Description |
|---|---|---|
mat | string | number | |
color (optional) | string | undefined | |
contests | readonly JudoQueueContest[] |
Examples
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"));trueWhat it prints (run when this page was built)