From 03ff0a58cf18702bb27154788e43f4d4ec393706 Mon Sep 17 00:00:00 2001 From: Tine Date: Wed, 15 Feb 2017 21:41:48 +0100 Subject: [PATCH] docs(device-motion): update interface names (#1076) AccelerationData interface is wrongly named in docs. It should be DeviceMotionAccelerationData. And I added it to import statement. --- src/plugins/devicemotion.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/devicemotion.ts b/src/plugins/devicemotion.ts index 1b8036fb5..c163a7bbf 100644 --- a/src/plugins/devicemotion.ts +++ b/src/plugins/devicemotion.ts @@ -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); * }); *