Reference · Where every tie sits
SizeNametype
The sizes a drawing has by name: wide, square, card and phone.
Import it
import type { SizeName } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type SizeName = "wide" | "square" | "phone" | "card";
Examples
import { drawBracket, type SizeName } from "@johnmorrisdotca/taisen-brackets";
const size: SizeName = "card";
console.log(drawBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }], { size }).includes("1350"));trueWhat it prints (run when this page was built)