GAME_STATUS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The playing, won and drawn outcome labels.
インポート
import { GAME_STATUS } from "@johnmorrisdotca/narabe";
定義
const GAME_STATUS: { readonly playing: "playing"; readonly won: "won"; readonly draw: "draw"; } = {
playing: "playing",
won: "won",
draw: "draw",
} as const satisfies Record<GameStatus, GameStatus>
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
playing | "playing" | |
won | "won" | |
draw | "draw" |
例
import { GAME_STATUS } from "@johnmorrisdotca/narabe";
console.log(GAME_STATUS);{ playing: 'playing', won: 'won', draw: 'draw' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。