Reference · Ready-made formats for each league
Leaguetype
A league with a playoff format by era: nhl, nba, mlb, nfl, cfl, mls or worldcup.
Import it
import type { League } from "@johnmorrisdotca/taisen-brackets/presets";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type League = "nhl" | "nba" | "mlb" | "nfl" | "cfl" | "mls" | "worldcup";
Examples
import { playoffFormat, type League } from "@johnmorrisdotca/taisen-brackets";
const league: League = "nhl";
console.log(playoffFormat(league, 2024)?.teams);16What it prints (run when this page was built)