chore(types): omit defaultValue from Node and Edge type for Svelte Flow

This commit is contained in:
moklick
2025-07-29 13:42:52 +02:00
parent 0c6f66ae67
commit 340fc9279e
4 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -72,7 +72,10 @@ export type Edge<
/**
* General escape hatch for adding custom attributes to the edge's DOM element.
*/
domAttributes?: Omit<SVGAttributes<SVGGElement>, 'id' | 'style' | 'className' | 'role' | 'aria-label'>;
domAttributes?: Omit<
SVGAttributes<SVGGElement>,
'id' | 'style' | 'className' | 'role' | 'aria-label' | 'defaultValue'
>;
};
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<
+1 -1
View File
@@ -35,7 +35,7 @@ export type Edge<
*/
domAttributes?: Omit<
SVGAttributes<SVGGElement>,
'id' | 'style' | 'class' | 'role' | 'aria-label'
'id' | 'style' | 'class' | 'role' | 'aria-label' | 'defaultValue'
>;
};
+1
View File
@@ -38,6 +38,7 @@ export type Node<
| 'draggable'
| 'role'
| 'aria-label'
| 'defaultValue'
| keyof DOMAttributes<HTMLDivElement>
>;
};