diff --git a/index.d.ts b/index.d.ts index a2f8d35..3b4615e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,10 +1,11 @@ -declare module 'react-native-geocoding' { - export default class Geocoder { - init(apiKey: string, options: Object): void; - isInit(): boolean; - setApiKey(API_KEY: string): void; - from(...params: any[]): Promise; - getFromLocation(address: string): Promise; - getFromLatLng(lat: number, lng: number): Promise; - } +declare module "react-native-geocoding" { + namespace Geocoder { + export function init(apiKey: string, options: Object): void; + export function isInit(): boolean; + export function setApiKey(API_KEY: string): void; + export function from(...params: any[]): Promise; + export function getFromLocation(address: string): Promise; + export function getFromLatLng(lat: number, lng: number): Promise; + } + export = Geocoder; }