RoadScore型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { RoadScore } from "@johnmorrisdotca/taisen-brackets/road";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
type RoadScore = readonly [
number | string,
number | string
] | string;
例
import { type RoadScore } from "@johnmorrisdotca/taisen-brackets";
const game: RoadScore = [2, 1];
const series: RoadScore = "4-2";
console.log(game, series);[ 2, 1 ] 4-2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。