Reference · The road to the final
RoadFinaltype
The final, when it has been played.
Import it
import type { RoadFinal } from "@johnmorrisdotca/taisen-brackets/road";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface RoadFinal {
score: RoadScore;
decidedBy?: RoadDecided;
pens?: readonly [
number | string,
number | string
];
note?: string;
}
Members
| Name | Type | Description |
|---|---|---|
score | RoadScore | The score, the first finalist's first. |
decidedBy (optional) | RoadDecided | undefined | |
pens (optional) | readonly [string | number, string | number] | undefined | The shoot-out, the first finalist's first. |
note (optional) | string | undefined |
Examples
import { roadToFinal, type RoadFinal } from "@johnmorrisdotca/taisen-brackets";
const final: RoadFinal = { score: [1, 2], decidedBy: "aet" };
const chart = roadToFinal([{ name: "Owls", path: [] }, { name: "Gulls", path: [] }], { final });
console.log(chart.totals.champion);GullsWhat it prints (run when this page was built)