Reference · The road to the final
RoadScoretype
A match's score from the finalist's side: [for, against] (numbers, or text such as a series' 4), or one text, "4-2", that is split at its dash.
Import it
import type { RoadScore } from "@johnmorrisdotca/taisen-brackets/road";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type RoadScore = readonly [
number | string,
number | string
] | string;
Examples
import { type RoadScore } from "@johnmorrisdotca/taisen-brackets";
const game: RoadScore = [2, 1];
const series: RoadScore = "4-2";
console.log(game, series);[ 2, 1 ] 4-2What it prints (run when this page was built)