GamesOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How the games of a flat list are grouped into ties: the stages in order, which one is the third-place match, which are two legs, and how long each series is.
インポート
import type { GamesOptions } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface GamesOptions {
stages: readonly string[];
third?: string;
aggregate?: readonly string[];
series?: Readonly<Record<string, number>>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
stages | readonly string[] | The knockout stages in order, first round first: |
third (省略可) | string | undefined | The stage of the third-place match, if the data has one. |
aggregate (省略可) | readonly string[] | undefined | Stages played in two legs, added up. Several games of one pair in any other stage are a replay. |
series (省略可) | Readonly<Record<string, number>> | undefined | Stages played as a series, with their length: |
例
import { matchupsFromGames, type GamesOptions } from "@johnmorrisdotca/taisen-brackets";
const options: GamesOptions = { stages: ["Semi-final", "Final"], third: "Third place" };
console.log(options.stages.length);2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。