fix some types
This commit is contained in:
@@ -18,7 +18,6 @@ import type {
|
||||
OnConnect,
|
||||
OnConnectStart,
|
||||
OnConnectEnd,
|
||||
ColorModeClass,
|
||||
OnReconnect,
|
||||
OnRecoonnectStart,
|
||||
OnReconnectEnd
|
||||
@@ -353,7 +352,7 @@ export type SvelteFlowProps<
|
||||
*/
|
||||
colorMode?: ColorMode;
|
||||
/** 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?: ClassValue;
|
||||
/** Styles to be applied to the flow container */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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 { FitViewOptions } from '$lib/types';
|
||||
@@ -31,7 +31,7 @@ export type ControlsProps = {
|
||||
fitViewOptions?: FitViewOptions;
|
||||
} & HTMLAttributes<HTMLDivElement>;
|
||||
|
||||
export type ControlButtonProps = HTMLButtonAttributes & {
|
||||
export type ControlButtonProps = HTMLAttributes<HTMLButtonElement> & {
|
||||
class?: ClassValue;
|
||||
bgColor?: string;
|
||||
bgColorHover?: string;
|
||||
|
||||
Reference in New Issue
Block a user