GroupTable型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One group: its name in the language and its teams, the best first.
インポート
import type { GroupTable } from "@johnmorrisdotca/taisen-brackets";
定義
interface GroupTable {
key: string;
name: string;
rows: GroupRow[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
key | string | The group's key: the teams' |
name | string | "Group A" in the language, or the teams' own |
rows | GroupRow[] |
例
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 2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。