paceSeconds関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Seconds for a pace given as a number or a name; the default for anything else.
インポート
import { paceSeconds } from "@johnmorrisdotca/kyuubu";
定義
function paceSeconds(pace: number | ScramblePace | undefined): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
pace | number | "fast" | "normal" | "slow" | undefined | A pace name or seconds per turn. |
戻り値
number
Seconds for a pace given as a number or a name; the default for anything else.
例
import { paceSeconds } from "@johnmorrisdotca/kyuubu";
console.log(paceSeconds("slow"));4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。