mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-21 16:29:58 +02:00
improve & granularize ExcalidrawElement types (#991)
* improve & granularize ExcalidrawElement types * fix incorrectly passing type * fix tests * fix more tests * fix unnecessary spreads & refactor * add comments
This commit is contained in:
@@ -3,7 +3,7 @@ import { ExcalidrawElement } from "./types";
|
||||
|
||||
const _ce = ({ x, y, w, h }: { x: number; y: number; w: number; h: number }) =>
|
||||
({
|
||||
type: "test",
|
||||
type: "rectangle",
|
||||
strokeColor: "#000",
|
||||
backgroundColor: "#000",
|
||||
fillStyle: "solid",
|
||||
|
Reference in New Issue
Block a user