migrate examples

This commit is contained in:
peterkogo
2024-11-12 13:03:28 +01:00
parent 3fc693b9d3
commit 352122968f
47 changed files with 322 additions and 202 deletions
+8 -10
View File
@@ -1,4 +1,4 @@
import type { SvelteComponent, ComponentType } from 'svelte';
import type { Component } from 'svelte';
import type {
EdgeBase,
BezierPathOptions,
@@ -113,15 +113,13 @@ export type StraightEdgeProps = Omit<EdgeComponentProps, 'sourcePosition' | 'tar
export type EdgeTypes = Record<
string,
ComponentType<
SvelteComponent<
EdgeProps & {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data?: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type: any;
}
>
Component<
EdgeProps & {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data?: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type: any;
}
>
>;
+8 -10
View File
@@ -1,4 +1,4 @@
import type { ComponentType, SvelteComponent } from 'svelte';
import type { Component } from 'svelte';
import type { InternalNodeBase, NodeBase, NodeProps as NodePropsBase } from '@xyflow/system';
/**
@@ -30,15 +30,13 @@ export type NodeProps<NodeType extends Node = Node> = NodePropsBase<NodeType> &
export type NodeTypes = Record<
string,
ComponentType<
SvelteComponent<
NodeProps & {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type: any;
}
>
Component<
NodeProps & {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type: any;
}
>
>;