Reference · The road to the final
RoadMatchtype
One match on a finalist's way.
Import it
import type { RoadMatch } from "@johnmorrisdotca/taisen-brackets/road";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface RoadMatch {
round: string;
opponent: RoadTeam;
score: RoadScore;
decidedBy?: RoadDecided;
pens?: readonly [
number | string,
number | string
];
homeFirst?: boolean;
note?: string;
}
Members
| Name | Type | Description |
|---|---|---|
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 (optional) | RoadDecided | undefined | How it was decided: |
pens (optional) | readonly [string | number, string | number] | undefined | The shoot-out, the finalist's first: |
homeFirst (optional) | boolean | undefined | The order of the pair, left to right: |
note (optional) | string | undefined | Words to write under the score in place of FT, AET or the shoot-out ( |
Examples
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 pensWhat it prints (run when this page was built)