Reference · Regions and international bodies
GroupingDateOptionstype
What groupingsOf() and membersOf() may be asked.
Import it
import type { GroupingDateOptions } from "@johnmorrisdotca/kuni/groupings";
Definition
interface GroupingDateOptions {
on?: string;
kind?: GroupingKind;
}
Members
| Name | Type | Description |
|---|---|---|
on (optional) | string | undefined | A day, "2015-06-30": an international body's members on that day rather than now. A member whose start Wikidata does not give counts from the start. Groupings that are not bodies have no dates, and the day changes nothing. |
kind (optional) | "continent" | "m49" | "membership" | "informal" | "subdivision" | undefined | Only groupings of this kind (for |
Examples
import type { GroupingDateOptions } from "@johnmorrisdotca/kuni/groupings";
const value: GroupingDateOptions = {on:"2015-06-30"};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'on' ]What it prints (run when this page was built)