From 97a61c90243056d0bad383479087b3ce9ae61230 Mon Sep 17 00:00:00 2001 From: Asif Jalil <62372647+asif-jalil@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:02:32 +0600 Subject: [PATCH] update type defination --- src/js/scroll.carousel.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/scroll.carousel.d.ts b/src/js/scroll.carousel.d.ts index 69b8792..2e43d7b 100644 --- a/src/js/scroll.carousel.d.ts +++ b/src/js/scroll.carousel.d.ts @@ -8,7 +8,7 @@ interface EventBindings { /** * Triggered when the slider moves. */ - scroll?: (progress?: number) => void; + move?: (progress: number) => void; /** * Triggered when the carousel destroyed */ @@ -32,6 +32,10 @@ declare class ScrollCarousel { * Re initialize the carousel after destroy */ reinit(): this; + /** + * The carousel is active or not + */ + isActive: boolean; } declare namespace ScrollCarousel {