GAME_STATUSconstant
The playing, won and drawn outcome labels.
Import it
import { GAME_STATUS } from "@johnmorrisdotca/narabe";
Definition
const GAME_STATUS: { readonly playing: "playing"; readonly won: "won"; readonly draw: "draw"; } = {
playing: "playing",
won: "won",
draw: "draw",
} as const satisfies Record<GameStatus, GameStatus>
Members
| Name | Type | Description |
|---|---|---|
playing | "playing" | |
won | "won" | |
draw | "draw" |
Examples
import { GAME_STATUS } from "@johnmorrisdotca/narabe";
console.log(GAME_STATUS);{ playing: 'playing', won: 'won', draw: 'draw' }What it prints (run when this page was built)