chore(types): remove dangerouslySetInnerHTML from domAttributes #5470

This commit is contained in:
moklick
2025-08-20 15:02:29 +02:00
parent 244e167d0a
commit 761a8a0876
4 changed files with 7 additions and 2 deletions

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' | 'dangerouslySetInnerHTML'
>;
};
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<

View File

@@ -36,6 +36,7 @@ export type Node<
| 'role'
| 'aria-label'
| 'defaultValue'
| 'dangerouslySetInnerHTML'
| keyof DOMAttributes<HTMLDivElement>
>;
};

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' | 'dangerouslySetInnerHTML'
>;
};

View File

@@ -38,6 +38,7 @@ export type Node<
| 'draggable'
| 'role'
| 'aria-label'
| 'dangerouslySetInnerHTML'
| keyof DOMAttributes<HTMLDivElement>
>;
};