RoadMatch型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One match on a finalist's way.
インポート
import type { RoadMatch } from "@johnmorrisdotca/taisen-brackets/road";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface RoadMatch {
round: string;
opponent: RoadTeam;
score: RoadScore;
decidedBy?: RoadDecided;
pens?: readonly [
number | string,
number | string
];
homeFirst?: boolean;
note?: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
round | string | The round, as a key. |
opponent | RoadTeam | The team it played: its name, abbreviation, |
score | RoadScore | The score, the finalist's first: |
decidedBy (省略可) | RoadDecided | undefined | How it was decided: |
pens (省略可) | readonly [string | number, string | number] | undefined | The shoot-out, the finalist's first: |
homeFirst (省略可) | boolean | undefined | The order of the pair, left to right: |
note (省略可) | string | undefined | Words to write under the score in place of FT, AET or the shoot-out ( |
例
import { type RoadMatch } from "@johnmorrisdotca/taisen-brackets";
const semi: RoadMatch = { round: "semi-final", opponent: { name: "Valley Stars", abbr: "VAL" }, score: [1, 1], decidedBy: "pens", pens: [4, 3] };
console.log(semi.round, semi.decidedBy);semi-final pens出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。