GameEvent型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An event emitted by one native transition; type selects the event’s additional fields.
インポート
import type { GameEvent } from "@johnmorrisdotca/houseki/falling-triplets";
定義
interface GameEvent {
readonly type: string;
readonly [key: string]: unknown;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
type | string |
例
import type { GameEvent } from "@johnmorrisdotca/houseki/falling-triplets";
const value: GameEvent = {type:"host-example"};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'type' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。