Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

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

NameTypeDescription
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 groupingsOf).

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.4.0.