Gemtype
A settled or active gem with a stable run-local identity.
Import it
import type { Gem } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
interface Gem {
readonly id: number;
readonly colour: Colour;
readonly target?: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
id | number | |
colour | Colour | |
target (optional) | boolean | undefined |
Examples
import type { Gem } from "@johnmorrisdotca/houseki/falling-triplets";
const value: Gem = {id:1,colour:"red"};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'id', 'colour' ]What it prints (run when this page was built)