RoadTotals型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The numbers behind a road chart.
インポート
import type { RoadTotals } from "@johnmorrisdotca/taisen-brackets/road";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface RoadTotals {
finalists: [
RoadRecord,
RoadRecord
];
rounds: string[];
played: boolean;
champion: string | null;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
finalists | [RoadRecord, RoadRecord] | |
rounds | string[] | The rounds of the chart, the earliest first, as keys. |
played | boolean | The final has a score. |
champion | string | null | The winner of the final, or null when it has not been played or is level. |
例
import { roadToFinal, type RoadTotals } from "@johnmorrisdotca/taisen-brackets";
const totals: RoadTotals = roadToFinal([{ name: "Owls", path: [] }, { name: "Gulls", path: [] }]).totals;
console.log(totals.played, totals.champion);false null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。