From 36227215fcae4443cccce57ba3cda7d3f95a5af8 Mon Sep 17 00:00:00 2001 From: DanielS Date: Sat, 18 Jul 2026 04:52:37 +0200 Subject: [PATCH] fix: add type annotation for slider index parameter --- src/components/HeroAndLiquidGlass.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HeroAndLiquidGlass.astro b/src/components/HeroAndLiquidGlass.astro index 254f23b..f7e6f6c 100644 --- a/src/components/HeroAndLiquidGlass.astro +++ b/src/components/HeroAndLiquidGlass.astro @@ -431,7 +431,7 @@ const heroTemplates = [ let currentIdx = 0; const totalSlides = slides.length; - function updateSlider(newIdx) { + function updateSlider(newIdx: number) { // Hide current slide slides[currentIdx].classList.remove('opacity-100', 'scale-100', 'pointer-events-auto'); slides[currentIdx].classList.add('opacity-0', 'scale-95', 'pointer-events-none');