Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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<void>;
getFromLocation(address: string): Promise<any>;
getFromLatLng(lat: number, lng: number): Promise<any>;
}
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<any>;
export function getFromLocation(address: string): Promise<any>;
export function getFromLatLng(lat: number, lng: number): Promise<any>;
}
export = Geocoder;
}