SUGOROKU_EMBED_OPTION_KEYS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The real mounted options, checked alongside builder coverage.
インポート
import { SUGOROKU_EMBED_OPTION_KEYS } from "@johnmorrisdotca/sugoroku/element";
ほかのエクスポート元: @johnmorrisdotca/sugoroku/element/define
定義
const SUGOROKU_EMBED_OPTION_KEYS: string[] = Object.keys({
board: true,
checkers: true,
colours: true,
theme: true,
home: true,
view: true,
numbers: true,
orientation: true,
variant: true,
rules: true,
preset: true,
seed: true,
dice: true,
computer: true,
computerDelay: true,
controls: true,
drag: true,
autoEnd: true,
language: true,
names: true,
sound: true,
match: true,
onRoll: true,
onMove: true,
onTurn: true,
onCube: true,
onEnd: true,
} satisfies Record<keyof SugorokuMountOptions, boolean>)
例
import { SUGOROKU_EMBED_OPTION_KEYS } from "@johnmorrisdotca/sugoroku/element";
console.log(typeof SUGOROKU_EMBED_OPTION_KEYS); // objectobject出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。