Reference · Where every tie sits
describeTiefunction
A tie in a sentence, for a tooltip, a table and a description: "Argentina 3, France 3 (after extra time, 4–2 on penalties). Winner: Argentina".
Import it
import { describeTie } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
function describeTie(tie: Tie, v: Voice): string
Parameters
| Name | Type | Description |
|---|---|---|
tie | Tie | The tie. |
v | Voice | The voice of a language, from |
Returns
string
The sentence, in the voice's language.
Examples
import { describeTie, layoutBracket, voiceOf } from "@johnmorrisdotca/taisen-brackets";
const { ties } = layoutBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }]);
console.log(describeTie(ties[0], voiceOf({})));Aurora 2, Harbour 1. Winner: AuroraWhat it prints (run when this page was built)