UNPKG

@eristack/iso-3166

Version:

ISO 3166-1 country codes and ISO 3166-2 subdivision normalization — assigned alpha-2/alpha-3 registry

12 lines • 755 B
import { z } from "zod"; export declare const countryAlpha2Schema: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").CountryCodeAlpha2, string>>; export declare const countryAlpha2LooseSchema: z.ZodString; export declare const countryAlpha3Schema: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").CountryCodeAlpha2, string>>; export declare const subdivisionCodeSchema: z.ZodPipe<z.ZodObject<{ countryAlpha2: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").CountryCodeAlpha2, string>>; subdivision: z.ZodString; }, z.core.$strip>, z.ZodTransform<import("../index.js").SubdivisionCode, { countryAlpha2: import("../index.js").CountryCodeAlpha2; subdivision: string; }>>; //# sourceMappingURL=schemas.d.ts.map