mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
make restore migration types required (#1977)
This commit is contained in:
parent
925db9dcca
commit
ab980b252c
3 changed files with 5 additions and 5 deletions
|
@ -24,8 +24,8 @@ const getFontFamilyByName = (fontFamilyName: string): FontFamily => {
|
|||
};
|
||||
|
||||
function migrateElementWithProperties<T extends ExcalidrawElement>(
|
||||
element: T,
|
||||
extra: Omit<T, keyof ExcalidrawElement>,
|
||||
element: Required<T>,
|
||||
extra: Omit<Required<T>, keyof ExcalidrawElement>,
|
||||
): T {
|
||||
const base: Pick<T, keyof ExcalidrawElement> = {
|
||||
type: element.type,
|
||||
|
@ -93,6 +93,7 @@ const migrateElement = (
|
|||
[element.width, element.height],
|
||||
]
|
||||
: element.points,
|
||||
lastCommittedPoint: null,
|
||||
});
|
||||
}
|
||||
// generic elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue