Reference · Draw a bracket, a table or a road to the final
JudoBracketOptionstype
What judoBracket can be told: the system and a prefix for the ties' ids.
Import it
import type { JudoBracketOptions } from "@johnmorrisdotca/taisen-brackets";
Definition
interface JudoBracketOptions {
system?: JudoSystem;
prefix?: string;
}
Members
| Name | Type | Description |
|---|---|---|
system (optional) | JudoSystem | undefined | Default |
prefix (optional) | string | undefined | The ids of the contests are |
Examples
import { judoBracket, type JudoBracketOptions } from "@johnmorrisdotca/taisen-brackets";
const options: JudoBracketOptions = { system: "repechage", prefix: "m66" };
console.log(judoBracket(["Haru", "Marc", "Levan", "Min", "Rafa", "Jasur", "Tom", "Joris"].map((name) => ({ id: name, name })), options).matchups.length);11What it prints (run when this page was built)