@@ -16,8 +16,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
1616import { fromEvent , Subscription } from 'rxjs' ;
1717import { filter , finalize , withLatestFrom , zipWith } from 'rxjs/operators' ;
1818
19- import { IntersectionService } from '../../services/intersection.service ' ;
20- import { IListenersConfig , ListenersService } from '../../services/listeners.service ' ;
19+ import { IntersectionService } from '../../services' ;
20+ import { IListenersConfig , ListenersService } from '../../services' ;
2121
2222import { CarouselState } from '../carousel-state' ;
2323import { CarouselService } from '../carousel.service' ;
@@ -36,12 +36,12 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
3636 * Index of the active item.
3737 * @type number
3838 */
39- @Input ( ) activeIndex = 0 ;
39+ @Input ( ) activeIndex : number = 0 ;
4040 /**
4141 * Carousel automatically starts cycle items.
4242 * @type boolean
4343 */
44- @Input ( ) animate = true ;
44+ @Input ( ) animate : boolean = true ;
4545 /**
4646 * Add darker controls, indicators, and captions.
4747 * @type boolean
@@ -57,7 +57,7 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
5757 * @type number
5858 * @default 0
5959 */
60- @Input ( ) interval = 0 ;
60+ @Input ( ) interval : number = 0 ;
6161 /**
6262 * Sets which event handlers you’d like provided to your pause prop. You can specify one trigger or an array of them.
6363 * @type {'hover' | 'focus' | 'click' }
@@ -80,12 +80,12 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
8080 * @type boolean
8181 * @default true
8282 */
83- @Input ( ) wrap = true ;
83+ @Input ( ) wrap : boolean = true ;
8484 /**
8585 * Event emitted on carousel item change. [docs]
8686 * @type number
8787 */
88- @Output ( ) itemChange = new EventEmitter < number > ( ) ;
88+ @Output ( ) itemChange : EventEmitter < number > = new EventEmitter < number > ( ) ;
8989
9090 @HostBinding ( 'class' )
9191 get hostClasses ( ) : any {
@@ -97,7 +97,7 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
9797 } ;
9898 }
9999
100- private timerId : number | undefined = undefined ;
100+ private timerId : ReturnType < typeof setTimeout > | undefined ;
101101 private activeItemInterval = 0 ;
102102 private swipeSubscription ?: Subscription ;
103103 readonly #destroyRef = inject ( DestroyRef ) ;
0 commit comments