Reference · Where every tie sits
Placetype
Where the layout put a tie.
Import it
import type { Place } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type Place = "l" | "r" | "f" | "o";
Examples
import { layoutBracket, type Place } from "@johnmorrisdotca/taisen-brackets";
const layout = layoutBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }]);
const places: Place[] = layout.place;
console.log(places);[ 'l', 'r', 'f' ]What it prints (run when this page was built)