Reference · Draw a bracket, a table or a road to the final
BoutOfficialtype
A referee or a judge. Only name is needed.
Import it
import type { BoutOfficial } from "@johnmorrisdotca/taisen-brackets";
Definition
interface BoutOfficial extends BoutAthlete {
role?: "referee" | "judge" | (string & {});
}
Members
| Name | Type | Description |
|---|---|---|
role (optional) | "referee" | "judge" | (string & {}) | undefined |
|
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 BoutOfficial } from "@johnmorrisdotca/taisen-brackets";
const referee: BoutOfficial = { role: "referee", code: "MGL", flag: "MN", name: "KHISHIGEE Khas-Erdene" };
console.log(boutBoard({ title: "Final", red: { name: "A" }, blue: { name: "B" }, officials: [referee] }).includes("KHISHIGEE"));trueWhat it prints (run when this page was built)