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
| Name | Type | Description |
|---|---|---|
code | string | The member's alpha-2 code: "DE". |
since | string | null | The day it joined, "1958-01-01", from Wikidata; |
until | string | null | The day it left, "2020-01-31"; |
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)