Reference · Draw a bracket, a table or a road to the final
ResultsColumntype
A column of scores: its heading in the sub bar, and the decimals of its numbers.
Import it
import type { ResultsColumn } from "@johnmorrisdotca/taisen-brackets";
Definition
interface ResultsColumn {
label?: string;
precision?: number;
}
Members
| Name | Type | Description |
|---|---|---|
label (optional) | string | undefined | |
precision (optional) | number | undefined |
Examples
import { resultsBoard, type ResultsColumn } from "@johnmorrisdotca/taisen-brackets";
const time: ResultsColumn = { label: "Time", precision: 2 };
console.log(resultsBoard({ title: "Final", columns: [time], rows: [{ name: "A", values: [50.5] }] }).includes("50.50"));trueWhat it prints (run when this page was built)