Reference · Ready-made formats for each league
LEAGUESconstant
The leagues that have a format here.
Import it
import { LEAGUES } from "@johnmorrisdotca/taisen-brackets/presets";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
const LEAGUES: readonly League[] = Object.freeze(Object.keys(ERAS) as League[])
Examples
import { LEAGUES } from "@johnmorrisdotca/taisen-brackets";
console.log(LEAGUES);[ 'nhl', 'nba', 'mlb', 'nfl', 'cfl', 'mls', 'worldcup' ]What it prints (run when this page was built)