remove Mutable

This commit is contained in:
dwelle 2025-04-30 09:19:56 +02:00
parent 662baa3df2
commit 0d3e9cb1bc

View file

@ -57,8 +57,6 @@ import type {
FixedSegment, FixedSegment,
} from "@excalidraw/element/types"; } from "@excalidraw/element/types";
import type { Mutable } from "@excalidraw/common/utility-types";
import type Scene from "@excalidraw/element/Scene"; import type Scene from "@excalidraw/element/Scene";
import { import {
@ -961,9 +959,7 @@ const isConvertibleLinearType = (
* e.g. elbow arrow -> line * e.g. elbow arrow -> line
*/ */
export const convertElementType = < export const convertElementType = <
TElement extends Mutable< TElement extends Exclude<ExcalidrawElement, ExcalidrawSelectionElement>,
Exclude<ExcalidrawElement, ExcalidrawSelectionElement>
>,
>( >(
element: TElement, element: TElement,
newType: ConvertibleType, newType: ConvertibleType,