Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit735f5ed

Browse files
committed
fix(carousel): types
1 parent9c628d5 commit735f5ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎projects/coreui-angular/src/lib/carousel/carousel/carousel.component.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
1616
import{fromEvent,Subscription}from'rxjs';
1717
import{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

2222
import{CarouselState}from'../carousel-state';
2323
import{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=newEventEmitter<number>();
88+
@Output()itemChange:EventEmitter<number>=newEventEmitter<number>();
8989

9090
@HostBinding('class')
9191
gethostClasses():any{
@@ -97,7 +97,7 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
9797
};
9898
}
9999

100-
privatetimerId:number|undefined=undefined;
100+
privatetimerId:ReturnType<typeofsetTimeout>|undefined;
101101
privateactiveItemInterval=0;
102102
privateswipeSubscription?:Subscription;
103103
readonly #destroyRef=inject(DestroyRef);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp