Skip to content

Commit

Permalink
fix(native-geocoder): set response type to an array (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciekawy authored and ihadeed committed May 16, 2018
1 parent e6db281 commit defb276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/native-geocoder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -55,7 +55,7 @@ export class NativeGeocoder extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
forwardGeocode(addressString: string): Promise<NativeGeocoderForwardResult> { return; }
forwardGeocode(addressString: string): Promise<NativeGeocoderForwardResult[]> { return; }
}

/**
Expand Down

0 comments on commit defb276

Please sign in to comment.