chore(types): less strict marker type #5411
This commit is contained in:
@@ -40,7 +40,7 @@ export const MarkerSymbols = {
|
||||
[MarkerType.ArrowClosed]: ArrowClosedSymbol,
|
||||
};
|
||||
|
||||
export function useMarkerSymbol(type: MarkerType) {
|
||||
export function useMarkerSymbol(type: MarkerType | `${MarkerType}`) {
|
||||
const store = useStoreApi();
|
||||
|
||||
const symbol = useMemo(() => {
|
||||
|
||||
@@ -90,7 +90,7 @@ export enum ConnectionLineType {
|
||||
* @public
|
||||
*/
|
||||
export type EdgeMarker = {
|
||||
type: MarkerType;
|
||||
type: MarkerType | `${MarkerType}`;
|
||||
color?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
|
||||
Reference in New Issue
Block a user