TenkaDressingOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What tenkaDressing may be given. Everything is optional.
インポート
import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";
定義
type TenkaDressingOptions = {
sound?: boolean;
tumbleMs?: number;
back?: CardBackOptions;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
sound (省略可) | boolean | undefined | Whether a throw makes the sound of dice: off unless asked, because a page that has not asked for noise gets none. |
tumbleMs (省略可) | number | undefined | How long the dice tumble before they land, in milliseconds: 600 unless said. 0 lands them at once. A device that asks for reduced motion lands them at once whatever this says. |
back (省略可) | CardBackOptions | undefined | Tenka's own back for the deck is drawn in the table's green, with the character 天 in the middle; say any of its colours or its mark here to change it. |
例
import type { TenkaDressingOptions } from "@johnmorrisdotca/tenka/dressing";
const value: TenkaDressingOptions = {sound:false,tumbleMs:200};
console.log(value);{ sound: false, tumbleMs: 200 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。