UNPKG

jposta

Version:

Library for Japanese postal code to address.ES6, Promise based, Typescript ready, React friendly, without any dependencies.

13 lines (12 loc) 315 B
type JpostaConfig = { host: string; }; export type Address = { pref: string; prefNum: number; city: string; area?: string; }; export declare const getAddress: (zipCode: string) => Promise<Address | null>; export declare const configureJposta: (config: Partial<JpostaConfig>) => void; export {};