Reference · Cube engine and views
MoveListItemtype
One move of a list: its code, what it turns in words (worked out from the code when left out), and the name a screen reader gives its button (the code and the words when left out).
Import it
import type { MoveListItem } from "@johnmorrisdotca/kyuubu";
Definition
type MoveListItem = {
code: string;
name?: string;
label?: string;
};
Members
| Name | Type | Description |
|---|---|---|
code | string | |
name (optional) | string | undefined | |
label (optional) | string | undefined |
Examples
import type { MoveListItem } from "@johnmorrisdotca/kyuubu";
const value: MoveListItem = { code: "R", label: "Right face" };
console.log(value.code);RWhat it prints (run when this page was built)