Reference · Draw a bracket, a table or a road to the final
BoutAthletetype
One of the two athletes of a bout. Only name is needed.
Import it
import type { BoutAthlete } from "@johnmorrisdotca/taisen-brackets";
Definition
interface BoutAthlete {
name: string | RankingName;
code?: string;
flag?: string;
mark?: string;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | RankingName | The name as it is to be written ( |
code (optional) | string | undefined | The country's three letters. |
flag (optional) | string | undefined | A code for the |
mark (optional) | string | undefined | A mark of your own in place of a flag. |
Examples
import { boutBoard, type BoutAthlete } from "@johnmorrisdotca/taisen-brackets";
const red: BoutAthlete = { code: "BRA", flag: "BR", name: "TAVARES M." };
console.log(boutBoard({ title: "Final", red, blue: { name: "MAYER M." } }).includes("TAVARES"));trueWhat it prints (run when this page was built)