Reference · Where every tie sits
Detailtype
How much a box shows: both names and scores, an abbreviation and the score, or only the marks.
Import it
import type { Detail } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type Detail = "auto" | "full" | "compact" | "mark";
Examples
import { drawBracket, type Detail } from "@johnmorrisdotca/taisen-brackets";
const detail: Detail = "compact";
console.log(drawBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }], { detail }).startsWith("<svg"));trueWhat it prints (run when this page was built)