リファレンス
すべての行政区画
import { … } from "@johnmorrisdotca/kuni/subdivisions";
最小化と gzip 圧縮をしたサイズは 88.4 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
allSubdivisions | 関数 | Every subdivision of every country, every level, in code order. |
Level | 型 | A level of subdivision: 1 for a country's first division, 2 and 3 for those inside one, or "all". |
subdivision | 関数 | One subdivision by its ISO 3166-2 code. |
Subdivision | 型 | A subdivision of a country (a state, a province, a prefecture), with its ISO 3166-2 code, as the lookups hand it out (frozen). |
SUBDIVISION_TYPES | 定数 | The kinds of subdivision, in kebab case. |
subdivisionByName | 関数 | The one subdivision a typed name means. |
SubdivisionByNameOptions | 型 | What subdivisionByName() and subdivisionsByName() may be narrowed to. |
subdivisionByShortCode | 関数 | One subdivision by its country and the part of its code after the hyphen. |
subdivisions | 関数 | A country's subdivisions, in code order: the first level unless level asks for another or for "all". |
subdivisionsByName | 関数 | Every subdivision a typed name could be, in code order: its English or Japanese name, its Japanese name without the word for its kind (オンタリオ, 東京), a prefecture's reading, or its full code. |
SubdivisionsOptions | 型 | What subdivisions() may be asked. |
SubdivisionType | 型 | A kind of subdivision, in kebab case: "prefecture", "state", "autonomous-community". |
subdivisionTypeLabel | 関数 | The word for a kind of subdivision. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。