noteLong関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The notes of a tie written out, for a sentence or a table: "after extra time", "4–2 on penalties".
インポート
import { noteLong } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
function noteLong(tie: Tie, v: Voice): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
tie | Tie | The tie. |
v | Voice | The voice of a language, from |
戻り値
string[]
The notes in full; an empty list when the score needs none.
例
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' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。