KARAKURI_EMBED_OPTION_KEYS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Native mounted options, checked against the embed builder.
インポート
import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";
ほかのエクスポート元: @johnmorrisdotca/karakuri/element/define
定義
const KARAKURI_EMBED_OPTION_KEYS: string[] = Object.keys({
game: true,
controller: true,
keyboard: true,
keyboardStep: true,
level: true,
lang: true,
ui: true,
room: true,
clock: true,
onStatus: true,
onChange: true,
} satisfies Record<keyof MountOptions, boolean>)
例
import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";
console.log(KARAKURI_EMBED_OPTION_KEYS.includes("keyboard"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。