fix some types

This commit is contained in:
peterkogo
2025-05-07 12:56:21 +02:00
parent bf7594cd3e
commit 5a35b47328
2 changed files with 3 additions and 4 deletions
@@ -18,7 +18,6 @@ import type {
OnConnect, OnConnect,
OnConnectStart, OnConnectStart,
OnConnectEnd, OnConnectEnd,
ColorModeClass,
OnReconnect, OnReconnect,
OnRecoonnectStart, OnRecoonnectStart,
OnReconnectEnd OnReconnectEnd
@@ -353,7 +352,7 @@ export type SvelteFlowProps<
*/ */
colorMode?: ColorMode; colorMode?: ColorMode;
/** Fallback color mode for SSR if colorMode is set to 'system' */ /** Fallback color mode for SSR if colorMode is set to 'system' */
colorModeSSR?: ColorModeClass; colorModeSSR?: Omit<ColorMode, 'system'>;
/** Class to be applied to the flow container */ /** Class to be applied to the flow container */
class?: ClassValue; class?: ClassValue;
/** Styles to be applied to the flow container */ /** Styles to be applied to the flow container */
@@ -1,5 +1,5 @@
import type { Snippet } from 'svelte'; import type { Snippet } from 'svelte';
import type { ClassValue, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements'; import type { ClassValue, HTMLAttributes } from 'svelte/elements';
import type { PanelPosition } from '@xyflow/system'; import type { PanelPosition } from '@xyflow/system';
import type { FitViewOptions } from '$lib/types'; import type { FitViewOptions } from '$lib/types';
@@ -31,7 +31,7 @@ export type ControlsProps = {
fitViewOptions?: FitViewOptions; fitViewOptions?: FitViewOptions;
} & HTMLAttributes<HTMLDivElement>; } & HTMLAttributes<HTMLDivElement>;
export type ControlButtonProps = HTMLButtonAttributes & { export type ControlButtonProps = HTMLAttributes<HTMLButtonElement> & {
class?: ClassValue; class?: ClassValue;
bgColor?: string; bgColor?: string;
bgColorHover?: string; bgColorHover?: string;