Reference · Puzzle board element
KARAKURI_EMBED_OPTION_KEYSconstant
Native mounted options, checked against the embed builder.
Import it
import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";
Also exported from: @johnmorrisdotca/karakuri/element/define
Definition
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>)
Examples
import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";
console.log(KARAKURI_EMBED_OPTION_KEYS.includes("keyboard"));trueWhat it prints (run when this page was built)