Reference · Draw a bracket, a table or a road to the final
JudoAthletetype
One athlete on the scoreboard. Only name is needed.
Import it
import type { JudoAthlete } from "@johnmorrisdotca/taisen-brackets";
Definition
interface JudoAthlete {
name: string;
code?: string;
flag?: string;
mark?: string;
coach?: string;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
code (optional) | string | undefined | The country's three letters ( |
flag (optional) | string | undefined | A country code for the |
mark (optional) | string | undefined | A mark of your own (an image address or inline SVG) in place of a flag. |
coach (optional) | string | undefined | The coach's name, written small under the code when |
Examples
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"));trueWhat it prints (run when this page was built)