fix types

This commit is contained in:
Aakansha Doshi
2023-05-29 13:53:19 +05:30
parent 5841e6a48d
commit 016662a7f6
3 changed files with 104 additions and 143 deletions

View File

@@ -102,6 +102,7 @@ export const restoreElementWithProperties = <
> &
Partial<Pick<ExcalidrawElement, "type" | "x" | "y">>,
): T => {
console.log("ELEMENT", element.backgroundColor);
const base: Pick<T, keyof ExcalidrawElement> & {
[PRECEDING_ELEMENT_KEY]?: string;
} = {