Installation
npm install --save @types/react-geocode
Summary
This package contains type definitions for react-geocode (https://github.com/shukerullah/react-geocode).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-geocode.
index.d.ts
export function fromAddress(address: string, apiKey?: string, language?: string, region?: string): Promise<any>;
export function fromLatLng(
latitude: string,
longitude: string,
apiKey?: string,
language?: string,
region?: string,
): Promise<any>;
export function setApiKey(api_key: string): void;
export function setLanguage(language: string): void;
export function enableDebug(enable?: boolean): void;
export function setRegion(region: string): void;
export function setLocationType(location_type: string): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Steve Mu.