本文へ移動

Kuni国

国、コード、名前、行政区画を調べ、必要なときに国のデータを読み込み、標準の国のカードを表示できます。

「国(くに)」は、国を表す日本語です。 名前について(英語)

目次

リファレンス · /subdivision-reforms

SubdivisionReform型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

A dated note of one law that rearranges a country's current subdivisions. The codes themselves stay.

インポート

import type { SubdivisionReform } from "@johnmorrisdotca/kuni/subdivision-reforms";

定義

interface SubdivisionReform {
    country: string;
    law: string;
    article: string;
    url: string;
    passed: string;
    effective: string;
    operating: string;
    effectLine: string;
    passedLine: string;
    operatingLine: string;
    units: readonly SubdivisionReformUnit[];
}

メンバー

名前型説明
countrystring

The ISO 3166-1 alpha-2 code of the country.

lawstring

The law, by the short name it is cited under.

articlestring

The article that lists which current units form which new one.

urlstring

The signed text of the law.

passedstring

The day the law was passed, as YYYY-MM-DD.

effectivestring

The day the law takes effect, as YYYY-MM-DD. For this resolution, the day it was passed.

operatingstring

The day the rearranged governments officially operate, as YYYY-MM-DD.

effectLinestring

The law's own sentence for when it takes effect.

passedLinestring

The law's own words for the day it was passed.

operatingLinestring

The law's own words for the day the new governments operate.

unitsreadonly SubdivisionReformUnit[]

The units the law names, in the order of its clauses.

例

import type { SubdivisionReform } from "@johnmorrisdotca/kuni/subdivision-reforms";

const value: SubdivisionReform = {
  country: "VN", law: "Resolution 202/2025/QH15", article: "1",
  url: "https://datafiles.chinhphu.vn/cpp/files/vbpq/2025/6/202qh.signed.pdf",
  passed: "2025-06-12", effective: "2025-06-12", operating: "2025-07-01",
  effectLine: "Nghị quyết này có hiệu lực thi hành từ ngày được thông qua.",
  passedLine: "thông qua ngày 12 tháng 6 năm 2025.",
  operatingLine: "chính thức hoạt động từ ngày 01 tháng 7 năm 2025.",
  units: [],
};
console.log(value.country);
VN

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kuni 1.19.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。