diff --git a/src/lib/accordion/AccordionItem.svelte b/src/lib/accordion/AccordionItem.svelte index 719522243..4ea289071 100644 --- a/src/lib/accordion/AccordionItem.svelte +++ b/src/lib/accordion/AccordionItem.svelte @@ -49,6 +49,7 @@ let inactiveCls = twMerge(inactiveClass, classInactive); // make a custom transition function that returns the desired transition + /* eslint-disable @typescript-eslint/no-explicit-any */ const multiple = (node: HTMLElement, params: any) => { switch (transitionType) { case 'blur': diff --git a/src/lib/badge/Badge.svelte b/src/lib/badge/Badge.svelte index 81ec04bdc..c9c29f380 100644 --- a/src/lib/badge/Badge.svelte +++ b/src/lib/badge/Badge.svelte @@ -6,6 +6,7 @@ import type { HTMLAttributes } from 'svelte/elements'; import { fade, type TransitionConfig } from 'svelte/transition'; + /* eslint-disable @typescript-eslint/no-explicit-any */ type TransitionFunc = (node: HTMLElement, params: any) => TransitionConfig; const dispatcher = createEventDispatcher(); diff --git a/src/lib/banner/Banner.svelte b/src/lib/banner/Banner.svelte index a65f53e83..bd9f47776 100644 --- a/src/lib/banner/Banner.svelte +++ b/src/lib/banner/Banner.svelte @@ -3,8 +3,9 @@ import CloseButton from '../utils/CloseButton.svelte'; import type { HTMLAttributes } from 'svelte/elements'; import { fade, type TransitionConfig } from 'svelte/transition'; + import type { ParamsType } from '../types' - type TransitionFunc = (node: HTMLElement, params: any) => TransitionConfig; + type TransitionFunc = (node: HTMLElement, params: ParamsType) => TransitionConfig; interface $$Props extends HTMLAttributes { position?: 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky'; diff --git a/src/lib/carousel/Carousel.svelte b/src/lib/carousel/Carousel.svelte index 3a572cdd0..7e5e24b61 100644 --- a/src/lib/carousel/Carousel.svelte +++ b/src/lib/carousel/Carousel.svelte @@ -18,8 +18,9 @@ import Indicators from './Indicators.svelte'; import Slide from './Slide.svelte'; import { canChangeSlide } from './CarouselSlide'; + import type { ParamsType } from '../types' - type TransitionFunc = (node: HTMLElement, params: any) => TransitionConfig; + type TransitionFunc = (node: HTMLElement, params: ParamsType) => TransitionConfig; const SLIDE_DURATION_RATIO = 0.25; // TODO: Expose one day? export let images: HTMLImgAttributes[]; @@ -78,6 +79,7 @@ carouselDiv = node; // used by DragStart // loop timer + /* eslint-disable @typescript-eslint/no-explicit-any */ let intervalId: any; if (duration > 0) intervalId = setInterval(nextSlide, duration); @@ -116,7 +118,7 @@ const onDragStart = (evt: MouseEvent | TouchEvent) => { if (disableSwipe) return; - + /* eslint-disable @typescript-eslint/no-unused-expressions */ touchEvent = evt; evt.cancelable && evt.preventDefault(); const start = getPositionFromEvent(evt); diff --git a/src/lib/carousel/Slide.svelte b/src/lib/carousel/Slide.svelte index 5b73e91e4..9e7f0c8c1 100644 --- a/src/lib/carousel/Slide.svelte +++ b/src/lib/carousel/Slide.svelte @@ -5,10 +5,11 @@ import { getContext } from 'svelte'; import type { Writable } from 'svelte/store'; import type { State } from './Carousel.svelte'; + import type { ParamsType } from '../types' const state = getContext>('state'); - type TransitionFunc = (node: HTMLElement, params: any) => TransitionConfig; + type TransitionFunc = (node: HTMLElement, params: ParamsType) => TransitionConfig; export let image: HTMLImgAttributes; export let transition: TransitionFunc | null = null; // Optional transition function, overrides default slide transition diff --git a/src/lib/carousel/Thumbnails.svelte b/src/lib/carousel/Thumbnails.svelte index 503117e29..36159d5ae 100644 --- a/src/lib/carousel/Thumbnails.svelte +++ b/src/lib/carousel/Thumbnails.svelte @@ -30,7 +30,6 @@
{#each images as image, idx} {@const selected = index === idx} -