GroupingMember型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One period of membership of a body: a member from since (or a day Wikidata does not give) until until.
インポート
import type { GroupingMember } from "@johnmorrisdotca/kuni/groupings";
定義
interface GroupingMember {
code: string;
since: string | null;
until: string | null;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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"; |
例
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' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。