Reference · Regions and international bodies
GroupingSourcetype
Where a grouping's definition comes from, and the terms its list is under.
Import it
import type { GroupingSource } from "@johnmorrisdotca/kuni/groupings";
Definition
interface GroupingSource {
name: string;
url: string;
licence: string;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | The source's name: "European Union, Countries". |
url | string | Where to read it. |
licence | string | The terms of the list as it is shipped here. |
Examples
import type { GroupingSource } from "@johnmorrisdotca/kuni/groupings";
import { grouping } from "@johnmorrisdotca/kuni/groupings";
const value: GroupingSource = grouping("eu")!.source;
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'name', 'url', 'licence' ]What it prints (run when this page was built)