make fileId mandatory for image and export convertToExcalidrawElements

This commit is contained in:
Aakansha Doshi 2023-07-18 13:03:59 +05:30
parent a6b389ca62
commit 756b924518
4 changed files with 6 additions and 3 deletions

View file

@ -32,6 +32,7 @@ import {
ExcalidrawLinearElement,
ExcalidrawSelectionElement,
ExcalidrawTextElement,
FileId,
FontFamilyValues,
TextAlign,
VerticalAlign,
@ -154,6 +155,7 @@ export type ExcalidrawProgrammaticElement =
type: Extract<ExcalidrawImageElement["type"], "image">;
x: number;
y: number;
fileId: FileId;
} & Partial<ExcalidrawImageElement>);
export interface ExcalidrawProgrammaticAPI {