Reference · Draw a bracket, a table or a road to the final
JudoCardContesttype
What the contest card shows: the two athletes and the header. The scores and the clock of a JudoContest are not drawn.
Import it
import type { JudoCardContest } from "@johnmorrisdotca/taisen-brackets";
Definition
type JudoCardContest = Pick<JudoContest, "white" | "blue" | "weight" | "round" | "mat" | "contest">;
Members
| Name | Type | Description |
|---|---|---|
round (optional) | string | undefined | |
white | JudoAthlete | |
blue | JudoAthlete | |
weight (optional) | string | undefined | The weight class as a heading ( |
mat (optional) | string | number | undefined | |
contest (optional) | string | number | undefined |
Examples
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"));trueWhat it prints (run when this page was built)