Skip to content

Commit

Permalink
fix(ibeacon): correct Type {Region} in some params (#2453)
Browse files Browse the repository at this point in the history
Changes wrongly typed @param {BeaconRegion} to @param {Region}
  • Loading branch information
saschame authored and danielsogl committed Apr 13, 2018
1 parent 23b760b commit 300db62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/@ionic-native/plugins/ibeacon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export class IBeacon extends IonicNativePlugin {
* native layer acknowledged the dispatch of the monitoring request.
*/
@Cordova({ otherPromise: true })
startMonitoringForRegion(region: BeaconRegion): Promise<string> { return; }
startMonitoringForRegion(region: Region): Promise<string> { return; }

/**
* Stop monitoring the specified region. It is valid to call
Expand All @@ -498,7 +498,7 @@ export class IBeacon extends IonicNativePlugin {
* native layer acknowledged the dispatch of the request to stop monitoring.
*/
@Cordova({ otherPromise: true })
stopMonitoringForRegion(region: BeaconRegion): Promise<void> { return; }
stopMonitoringForRegion(region: Region): Promise<void> { return; }

/**
* Request state the for specified region. When result is ready
Expand Down Expand Up @@ -532,7 +532,7 @@ export class IBeacon extends IonicNativePlugin {
* native layer acknowledged the dispatch of the monitoring request.
*/
@Cordova({ otherPromise: true })
startRangingBeaconsInRegion(region: BeaconRegion): Promise<void> { return; }
startRangingBeaconsInRegion(region: Region): Promise<void> { return; }

/**
* Stop ranging the specified region. It is valid to call
Expand All @@ -549,7 +549,7 @@ export class IBeacon extends IonicNativePlugin {
* native layer acknowledged the dispatch of the request to stop monitoring.
*/
@Cordova({ otherPromise: true })
stopRangingBeaconsInRegion(region: BeaconRegion): Promise<void> { return; }
stopRangingBeaconsInRegion(region: Region): Promise<void> { return; }

/**
* Queries the native layer to determine the current authorization in effect.
Expand Down

0 comments on commit 300db62

Please sign in to comment.