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 · /subdivision-names/es

SubdivisionNamesSearchOptionstype

What subdivisionsByName() may be narrowed to.

Import it

import type { SubdivisionNamesSearchOptions } from "@johnmorrisdotca/kuni/subdivision-names/es";

Also exported from: @johnmorrisdotca/kuni/subdivision-names/de, @johnmorrisdotca/kuni/subdivision-names/zh-Hans, @johnmorrisdotca/kuni/subdivision-names/zh-Hant

Definition

interface SubdivisionNamesSearchOptions {
    country?: string;
}

Members

NameTypeDescription
country (optional)string | undefined

Only this country's subdivisions (alpha-2, either case).

Examples

import type { SubdivisionNamesSearchOptions } from "@johnmorrisdotca/kuni/subdivision-names/es";

const options: SubdivisionNamesSearchOptions = { country: "ES" };
console.log(options.country);   // "ES"
ES

What it prints (run when this page was built)

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