fix(native-geocoder): set response type to an array (#2505)

This commit is contained in:
Szymon Stasik 2018-05-16 18:16:39 -05:00 committed by Ibby Hadeed
parent e6db28123d
commit defb276b22

View File

@ -45,7 +45,7 @@ export class NativeGeocoder extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
reverseGeocode(latitude: number, longitude: number): Promise<NativeGeocoderReverseResult> { return; }
reverseGeocode(latitude: number, longitude: number): Promise<NativeGeocoderReverseResult[]> { return; }
/**
* Forward geocode a given address to find coordinates
@ -55,7 +55,7 @@ export class NativeGeocoder extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
forwardGeocode(addressString: string): Promise<NativeGeocoderForwardResult> { return; }
forwardGeocode(addressString: string): Promise<NativeGeocoderForwardResult[]> { return; }
}
/**