Reference · Draw a bracket, a table or a road to the final
NumberOnesSourcetype
The number ones to draw: a title, a date, a source and one card for each category.
Import it
import type { NumberOnesSource } from "@johnmorrisdotca/taisen-brackets";
Definition
interface NumberOnesSource {
title?: string;
date?: string;
source?: string;
cards: readonly RankingCard[];
}
Members
| Name | Type | Description |
|---|---|---|
title (optional) | string | undefined | The heading. Default: the language's "Number ones". |
date (optional) | string | undefined | The date or period, at the right of the heading. |
source (optional) | string | undefined | Where the list comes from, small at the foot. |
cards | readonly RankingCard[] |
Examples
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"));trueWhat it prints (run when this page was built)