migrate examples
This commit is contained in:
@@ -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;
|
||||
}
|
||||
>
|
||||
>;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
>
|
||||
>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user