BlackHolePortal型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A Gem Swap portal’s cell, remaining capacity, move lifetime and consumed stable ids.
インポート
import type { BlackHolePortal } from "@johnmorrisdotca/houseki/gem-swap";
定義
interface BlackHolePortal {
readonly cell: number;
readonly capacityRemaining: number;
readonly movesRemaining: number;
readonly consumedIds: readonly number[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
cell | number | |
capacityRemaining | number | |
movesRemaining | number | |
consumedIds | readonly number[] |
例
import type { BlackHolePortal } from "@johnmorrisdotca/houseki/gem-swap";
const value: BlackHolePortal = {cell:0,capacityRemaining:2,movesRemaining:2,consumedIds:[]};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'cell', 'capacityRemaining', 'movesRemaining', 'consumedIds' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。