Reference · Draw a bracket, a table or a road to the final
GroupTabletype
One group: its name in the language and its teams, the best first.
Import it
import type { GroupTable } from "@johnmorrisdotca/taisen-brackets";
Definition
interface GroupTable {
key: string;
name: string;
rows: GroupRow[];
}
Members
| Name | Type | Description |
|---|---|---|
key | string | The group's key: the teams' |
name | string | "Group A" in the language, or the teams' own |
rows | GroupRow[] |
Examples
import { groupStandings, type GroupTable } from "@johnmorrisdotca/taisen-brackets";
const teams = [{ id: "A", name: "Aurora", group: "A" }, { id: "B", name: "Harbour", group: "A" }];
const tables: GroupTable[] = groupStandings({ teams, matchups: [{ sides: ["A", "B"], score: [2, 1], round: 0 }] });
console.log(tables[0].name, tables[0].rows.length);Group A 2What it prints (run when this page was built)