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