Skip to content

Commit

Permalink
docs(device-motion): update interface names (#1076)
Browse files Browse the repository at this point in the history
AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement.
  • Loading branch information
tinep authored and ihadeed committed Feb 15, 2017
1 parent c7a888e commit 03ff0a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/devicemotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ export interface DeviceMotionAccelerometerOptions {
*
* @usage
* ```typescript
* import { DeviceMotion } from 'ionic-native';
* import { DeviceMotion, DeviceMotionAccelerationData } from 'ionic-native';
*
*
* // Get the device current acceleration
* DeviceMotion.getCurrentAcceleration().then(
* (acceleration: AccelerationData) => console.log(acceleration),
* (acceleration: DeviceMotionAccelerationData) => console.log(acceleration),
* (error: any) => console.log(error)
* );
*
* // Watch device acceleration
* var subscription = DeviceMotion.watchAcceleration().subscribe((acceleration: AccelerationData) => {
* var subscription = DeviceMotion.watchAcceleration().subscribe((acceleration: DeviceMotionAccelerationData) => {
* console.log(acceleration);
* });
*
Expand Down

0 comments on commit 03ff0a5

Please sign in to comment.