mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
remove Mutable
This commit is contained in:
parent
662baa3df2
commit
0d3e9cb1bc
1 changed files with 1 additions and 5 deletions
|
@ -57,8 +57,6 @@ import type {
|
|||
FixedSegment,
|
||||
} from "@excalidraw/element/types";
|
||||
|
||||
import type { Mutable } from "@excalidraw/common/utility-types";
|
||||
|
||||
import type Scene from "@excalidraw/element/Scene";
|
||||
|
||||
import {
|
||||
|
@ -961,9 +959,7 @@ const isConvertibleLinearType = (
|
|||
* e.g. elbow arrow -> line
|
||||
*/
|
||||
export const convertElementType = <
|
||||
TElement extends Mutable<
|
||||
Exclude<ExcalidrawElement, ExcalidrawSelectionElement>
|
||||
>,
|
||||
TElement extends Exclude<ExcalidrawElement, ExcalidrawSelectionElement>,
|
||||
>(
|
||||
element: TElement,
|
||||
newType: ConvertibleType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue