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,
|
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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue