-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
27 lines (24 loc) · 659 Bytes
/
index.d.ts
File metadata and controls
27 lines (24 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
declare module "react-native-google-maps-directions" {
export namespace directions {type LatLng = {
latitude: number;
longitude: number;
};
type travelMode = "DRIVING" | "BICYCLING" | "TRANSIT" | "WALKING";
type paramsKeys =
| "travelmode"
| "dir_action"
| "origin"
| "destination"
| "waypoints";
interface paramsProps {
key: string | paramsKeys;
value: string | travelMode;
}
interface getDirectionsProps {
destination: LatLng;
source: LatLng;
params: Array<paramsProps>|[];
waypoints: LatLng[]| [];
}}
export function getDirections(props:directions.getDirectionsProps):Promise<any>;
}