diff --git a/src/plugins/deviceorientation.ts b/src/plugins/deviceorientation.ts index 551c588e2..c3a5f9967 100644 --- a/src/plugins/deviceorientation.ts +++ b/src/plugins/deviceorientation.ts @@ -46,19 +46,19 @@ export interface DeviceOrientationCompassOptions { * * @usage * ```typescript - * // CompassHeading is an interface for compass - * import { DeviceOrientation, CompassHeading } from 'ionic-native'; + * // DeviceOrientationCompassHeading is an interface for compass + * import { DeviceOrientation, DeviceOrientationCompassHeading } from 'ionic-native'; * * * // Get the device current compass heading * DeviceOrientation.getCurrentHeading().then( - * (data: CompassHeading) => console.log(data), + * (data: DeviceOrientationCompassHeading) => console.log(data), * (error: any) => console.log(error) * ); * * // Watch the device compass heading change * var subscription = DeviceOrientation.watchHeading().subscribe( - * (data: CompassHeading) => console.log(data) + * (data: DeviceOrientationCompassHeading) => console.log(data) * ); * * // Stop watching heading change