import { Shake } from '@ionic-native/shake' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class ShakeMock extends Shake { param sensitivity { number } returns { Observable < any > } startWatch ( sensitivity ? ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; }