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

GroupingMembertype

One period of membership of a body: a member from since (or a day Wikidata does not give) until until.

Import it

import type { GroupingMember } from "@johnmorrisdotca/kuni/groupings";

Definition

interface GroupingMember {
    code: string;
    since: string | null;
    until: string | null;
}

Members

NameTypeDescription
codestring

The member's alpha-2 code: "DE".

sincestring | null

The day it joined, "1958-01-01", from Wikidata; null where Wikidata does not give the day.

untilstring | null

The day it left, "2020-01-31"; null while it is a member.

Examples

import type { GroupingMember } from "@johnmorrisdotca/kuni/groupings";

const value: GroupingMember = {code:"DE",since:"1958-01-01",until:null};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[ 'code', 'since', 'until' ]

What it prints (run when this page was built)

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