@@ -16,8 +16,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
16
16
import { fromEvent , Subscription } from 'rxjs' ;
17
17
import { filter , finalize , withLatestFrom , zipWith } from 'rxjs/operators' ;
18
18
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' ;
21
21
22
22
import { CarouselState } from '../carousel-state' ;
23
23
import { CarouselService } from '../carousel.service' ;
@@ -36,12 +36,12 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
36
36
* Index of the active item.
37
37
* @type number
38
38
*/
39
- @Input ( ) activeIndex = 0 ;
39
+ @Input ( ) activeIndex : number = 0 ;
40
40
/**
41
41
* Carousel automatically starts cycle items.
42
42
* @type boolean
43
43
*/
44
- @Input ( ) animate = true ;
44
+ @Input ( ) animate : boolean = true ;
45
45
/**
46
46
* Add darker controls, indicators, and captions.
47
47
* @type boolean
@@ -57,7 +57,7 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
57
57
* @type number
58
58
* @default 0
59
59
*/
60
- @Input ( ) interval = 0 ;
60
+ @Input ( ) interval : number = 0 ;
61
61
/**
62
62
* Sets which event handlers you’d like provided to your pause prop. You can specify one trigger or an array of them.
63
63
* @type {'hover' | 'focus' | 'click' }
@@ -80,12 +80,12 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
80
80
* @type boolean
81
81
* @default true
82
82
*/
83
- @Input ( ) wrap = true ;
83
+ @Input ( ) wrap : boolean = true ;
84
84
/**
85
85
* Event emitted on carousel item change. [docs]
86
86
* @type number
87
87
*/
88
- @Output ( ) itemChange = new EventEmitter < number > ( ) ;
88
+ @Output ( ) itemChange : EventEmitter < number > = new EventEmitter < number > ( ) ;
89
89
90
90
@HostBinding ( 'class' )
91
91
get hostClasses ( ) : any {
@@ -97,7 +97,7 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
97
97
} ;
98
98
}
99
99
100
- private timerId : number | undefined = undefined ;
100
+ private timerId : ReturnType < typeof setTimeout > | undefined ;
101
101
private activeItemInterval = 0 ;
102
102
private swipeSubscription ?: Subscription ;
103
103
readonly #destroyRef = inject ( DestroyRef ) ;
0 commit comments