refactor: fix type checks

This commit is contained in:
Elias Schneider
2026-09-19 17:24:30 +02:00
parent 63050add4e
commit c22003f6de
3 changed files with 6 additions and 6 deletions
@@ -1,7 +1,7 @@
<script lang="ts">
import { m } from '$lib/paraglide/messages';
import { cn } from '$lib/utils/style';
import { LucideChevronDown, type Icon as IconType } from '@lucide/svelte';
import { LucideChevronDown, type LucideIcon } from '@lucide/svelte';
import { onMount, type Snippet } from 'svelte';
import { slide } from 'svelte/transition';
import { Button } from './ui/button';
@@ -22,7 +22,7 @@
description?: string;
defaultExpanded?: boolean;
forcedExpanded?: boolean;
icon?: typeof IconType;
icon?: LucideIcon;
button?: Snippet;
children: Snippet;
} = $props();
@@ -3,7 +3,7 @@
import * as Item from '$lib/components/ui/item/index.js';
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
import { m } from '$lib/paraglide/messages';
import { LucideCalendar, LucidePencil, LucideTrash, type Icon as IconType } from '@lucide/svelte';
import { LucideCalendar, LucidePencil, LucideTrash, type LucideIcon } from '@lucide/svelte';
let {
icon,
@@ -13,7 +13,7 @@
label,
description
}: {
icon: typeof IconType;
icon: LucideIcon;
onRename?: () => void;
onDelete: () => void;
showRenameAction?: boolean;
@@ -1,9 +1,9 @@
<script lang="ts">
import * as Item from '$lib/components/ui/item/index.js';
import type { Icon as IconType } from '@lucide/svelte';
import type { LucideIcon } from '@lucide/svelte';
interface Props {
icon: typeof IconType;
icon: LucideIcon;
name: string;
description: string;
}