Reference · Boards, rules and challenges
GoalHoletype
Named goal hole and its localized menu labels.
Import it
import type { GoalHole } from "@johnmorrisdotca/tobiishi";
Definition
type GoalHole = Readonly<{
id: string;
names: Readonly<Record<"en" | "ja", string>>;
x: number;
y: number;
}>;
Members
| Name | Type | Description |
|---|---|---|
id | string | |
names | Readonly<Record<"en" | "ja", string>> | |
x | number | |
y | number |
Examples
import type { GoalHole } from "@johnmorrisdotca/tobiishi";
import { TOBIISHI_CHALLENGE_PACKS } from "@johnmorrisdotca/tobiishi";
const value: GoalHole = TOBIISHI_CHALLENGE_PACKS.english.goals[0];
console.log(value);{ id: 'centre', names: { en: 'Centre', ja: '中央' }, x: 3, y: 3 }What it prints (run when this page was built)