diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index aaa73e19eb4..3c9bd1a526d 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -787,7 +787,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slideTo(index: number, speed: number, runCallbacks: boolean) { + slideTo(index: number, speed?: number, runCallbacks?: boolean) { this.slider.slideTo(index, speed, runCallbacks); } @@ -797,7 +797,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slideNext(speed: number, runCallbacks: boolean) { + slideNext(speed?: number, runCallbacks?: boolean) { this.slider.slideNext(runCallbacks, speed); } @@ -807,7 +807,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slidePrev(speed: number, runCallbacks: boolean) { + slidePrev(speed?: number, runCallbacks?: boolean) { this.slider.slidePrev(runCallbacks, speed); } diff --git a/ionic/components/slides/test/controller/index.ts b/ionic/components/slides/test/controller/index.ts index 717ee431ca1..c99b1d61ebe 100644 --- a/ionic/components/slides/test/controller/index.ts +++ b/ionic/components/slides/test/controller/index.ts @@ -49,5 +49,5 @@ class MyPage { template: `` }) class E2EApp { - root: Page = MyPage; + root: any = MyPage; }