@eristack/iso-3166
Version:
ISO 3166-1 country codes and ISO 3166-2 subdivision normalization — assigned alpha-2/alpha-3 registry
9 lines • 578 B
TypeScript
import type { CountryCodeAlpha2 } from "./types.js";
/** True when `code` is an assigned ISO 3166-1 alpha-2 code (after trim/uppercase). */
export declare function isAssignedAlpha2(code: string): boolean;
/** Normalize to assigned alpha-2 or throw `CountryCodeError`. */
export declare function normalizeAlpha2(code: string): CountryCodeAlpha2;
/** Readonly list of assigned alpha-2 codes (stable order). */
export declare function listAssignedAlpha2(): readonly string[];
export declare function compareAlpha2(a: string, b: string): number;
//# sourceMappingURL=alpha2.d.ts.map