Reference · Ready-made formats for each league
PlayoffRoundtype
One round of a playoff format: its name and how many games a series is (null for a single game).
Import it
import type { PlayoffRound } from "@johnmorrisdotca/taisen-brackets/presets";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface PlayoffRound {
name: string;
bestOf: number | null;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | The round's name as the league calls it. |
bestOf | number | null | The length of the series, or 1 for a single game; null when the round is two legs or a group stage. |
Examples
import { playoffFormat, type PlayoffRound } from "@johnmorrisdotca/taisen-brackets";
const rounds: PlayoffRound[] = playoffFormat("nba", 2024)?.rounds ?? [];
console.log(rounds.map((round) => `${round.name}: ${round.bestOf}`));[
'First Round: 7',
'Conference Semifinals: 7',
'Conference Finals: 7',
'NBA Finals: 7'
]What it prints (run when this page was built)