Reference · Where every tie sits
noteLongfunction
The notes of a tie written out, for a sentence or a table: "after extra time", "4–2 on penalties".
Import it
import { noteLong } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
function noteLong(tie: Tie, v: Voice): string[]
Parameters
| Name | Type | Description |
|---|---|---|
tie | Tie | The tie. |
v | Voice | The voice of a language, from |
Returns
string[]
The notes in full; an empty list when the score needs none.
Examples
import { layoutBracket, noteLong, voiceOf } from "@johnmorrisdotca/taisen-brackets";
const { ties } = layoutBracket([{ sides: ["ARG", "FRA"], score: [3, 3], extraTime: true, pens: [4, 2] }]);
console.log(noteLong(ties[0], voiceOf({ locale: "ja" })));[ '延長戦', 'PK戦 4–2' ]What it prints (run when this page was built)