chore(types): less strict marker type #5411

This commit is contained in:
moklick
2025-07-28 10:43:28 +02:00
parent e625e1dffc
commit 7ff0733726
2 changed files with 2 additions and 2 deletions
@@ -40,7 +40,7 @@ export const MarkerSymbols = {
[MarkerType.ArrowClosed]: ArrowClosedSymbol, [MarkerType.ArrowClosed]: ArrowClosedSymbol,
}; };
export function useMarkerSymbol(type: MarkerType) { export function useMarkerSymbol(type: MarkerType | `${MarkerType}`) {
const store = useStoreApi(); const store = useStoreApi();
const symbol = useMemo(() => { const symbol = useMemo(() => {
+1 -1
View File
@@ -90,7 +90,7 @@ export enum ConnectionLineType {
* @public * @public
*/ */
export type EdgeMarker = { export type EdgeMarker = {
type: MarkerType; type: MarkerType | `${MarkerType}`;
color?: string; color?: string;
width?: number; width?: number;
height?: number; height?: number;