GameEventtype
A domain event emitted by one transition.
Import it
import type { GameEvent } from "@johnmorrisdotca/houseki/colour-chains";
Definition
interface GameEvent {
readonly type: string;
readonly [key: string]: unknown;
}
Members
| Name | Type | Description |
|---|---|---|
type | string |
Examples
import type { GameEvent } from "@johnmorrisdotca/houseki/colour-chains";
const value: GameEvent = {type:"host-example"};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'type' ]What it prints (run when this page was built)