NumberOnesSource型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The number ones to draw: a title, a date, a source and one card for each category.
インポート
import type { NumberOnesSource } from "@johnmorrisdotca/taisen-brackets";
定義
interface NumberOnesSource {
title?: string;
date?: string;
source?: string;
cards: readonly RankingCard[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
title (省略可) | string | undefined | The heading. Default: the language's "Number ones". |
date (省略可) | string | undefined | The date or period, at the right of the heading. |
source (省略可) | string | undefined | Where the list comes from, small at the foot. |
cards | readonly RankingCard[] |
例
import { rankingNumberOnes, type NumberOnesSource } from "@johnmorrisdotca/taisen-brackets";
const source: NumberOnesSource = { date: "October 2026", cards: [{ category: "-66 kg", entry: { name: "Leclerc", points: 1175 } }] };
console.log(rankingNumberOnes(source).includes("#1 in -66 kg"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。