Reference · Rules, maps and records
TenkaTerritoryDatatype
One territory as the map script writes it: neighbours by land and by sea are indices into the same list.
Import it
import type { TenkaTerritoryData } from "@johnmorrisdotca/tenka";
Definition
type TenkaTerritoryData = {
key: string;
name: string;
continent: TenkaContinentKey;
land: readonly number[];
sea: readonly number[];
};
Members
| Name | Type | Description |
|---|---|---|
key | string | |
name | string | |
continent | TenkaContinentKey | |
land | readonly number[] | |
sea | readonly number[] |
Examples
import type { TenkaTerritoryData } from "@johnmorrisdotca/tenka";
import { TENKA_MAPS } from "@johnmorrisdotca/tenka";
const value: TenkaTerritoryData = TENKA_MAPS.world.territories[0];
console.log(value);{
key: 'alaska',
name: 'Alaska',
continent: 'northAmerica',
land: [ 1, 3 ],
sea: [ 29 ]
}What it prints (run when this page was built)