File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const AUTOPLAY_OPTIONS = {
2828}
2929
3030type DebugEmblaElement = HTMLElement & { __emblaApi__ ?: EmblaCarouselType }
31+ type TimerHandle = ReturnType < typeof setTimeout > | number
3132
3233export class CarouselElement extends HTMLElement {
3334 private emblaApi : EmblaCarouselType | null = null
@@ -43,7 +44,7 @@ export class CarouselElement extends HTMLElement {
4344 private hasAutoplaySupport = false
4445 private autoplayReady = false
4546 private autoplayReadyScheduled = false
46- private autoplayReadyTimer : ReturnType < typeof setTimeout > | null = null
47+ private autoplayReadyTimer : TimerHandle | null = null
4748 private readonly animationInstanceId : string
4849 private readonly domReadyHandler = ( ) => {
4950 document . removeEventListener ( 'DOMContentLoaded' , this . domReadyHandler )
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const AUTOPLAY_OPTIONS = {
2828}
2929
3030type DebugEmblaElement = HTMLElement & { __emblaApi__ ?: EmblaCarouselType }
31+ type TimerHandle = ReturnType < typeof setTimeout > | number
3132
3233export class TestimonialsCarouselElement extends HTMLElement {
3334 private emblaApi : EmblaCarouselType | null = null
@@ -43,7 +44,7 @@ export class TestimonialsCarouselElement extends HTMLElement {
4344 private hasAutoplaySupport = false
4445 private autoplayReady = false
4546 private autoplayReadyScheduled = false
46- private autoplayReadyTimer : ReturnType < typeof setTimeout > | null = null
47+ private autoplayReadyTimer : TimerHandle | null = null
4748 private readonly animationInstanceId : string
4849 private readonly domReadyHandler = ( ) => {
4950 document . removeEventListener ( 'DOMContentLoaded' , this . domReadyHandler )
You can’t perform that action at this time.
0 commit comments