fix type errors

This commit is contained in:
peterkogo
2025-05-14 11:54:10 +02:00
parent b30a496bf4
commit 9aa385ae5f
2 changed files with 4 additions and 2 deletions
@@ -57,6 +57,8 @@
onselectiondragstart,
onselectiondrag,
onselectiondragstop,
onselectionstart,
onselectionend,
clickConnect,
fitView,
fitViewOptions,
@@ -1,5 +1,5 @@
import type { Snippet } from 'svelte';
import type { ClassValue, HTMLAttributes } from 'svelte/elements';
import type { ClassValue, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
import type { PanelPosition } from '@xyflow/system';
import type { FitViewOptions } from '$lib/types';
@@ -31,7 +31,7 @@ export type ControlsProps = {
fitViewOptions?: FitViewOptions;
} & HTMLAttributes<HTMLDivElement>;
export type ControlButtonProps = HTMLAttributes<HTMLButtonElement> & {
export type ControlButtonProps = HTMLButtonAttributes & {
class?: ClassValue;
bgColor?: string;
bgColorHover?: string;