mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-21 16:22:44 +00:00
* clear to tests * Clear to tests * Failing tests fix * fix failing tests * fix failing tests * fix failing tests
32 lines
736 B
TypeScript
32 lines
736 B
TypeScript
// Type definitions for japan-postal-code 0.2
|
|
// Project: https://github.com/mzp/japan-postal-code
|
|
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export as namespace JapanPostalCodeLibrary;
|
|
|
|
export = JapanPostalCode;
|
|
|
|
declare const JapanPostalCode: JapanPostalCode.API;
|
|
|
|
declare namespace JapanPostalCode {
|
|
interface API {
|
|
get: FetchPostalCodeMethod;
|
|
}
|
|
|
|
interface FetchPostalCodeMethod {
|
|
(stringifiedPostalCode: string, callback: Callback): void;
|
|
}
|
|
|
|
interface Callback {
|
|
(addressData: AddressData): void;
|
|
}
|
|
|
|
interface AddressData {
|
|
prefecture: string;
|
|
city: string;
|
|
area: string;
|
|
street: string;
|
|
}
|
|
}
|