Reference · Where every tie sits
SingleEliminationOptionstype
What singleElimination can be told.
Import it
import type { SingleEliminationOptions } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface SingleEliminationOptions {
thirdPlace?: boolean;
prefix?: string;
}
Members
| Name | Type | Description |
|---|---|---|
thirdPlace (optional) | boolean | undefined | Add a third-place match between the losing semi-finalists. Default false. |
prefix (optional) | string | undefined | The ids of the ties are |
Examples
import { singleElimination, type SingleEliminationOptions } from "@johnmorrisdotca/taisen-brackets";
const options: SingleEliminationOptions = { thirdPlace: true, prefix: "wc" };
console.log(singleElimination([{ id: "A", name: "A" }, { id: "B", name: "B" }], options).matchups.length);1What it prints (run when this page was built)