update api to use label

This commit is contained in:
Aakansha Doshi 2023-05-12 17:19:36 +05:30
parent e465a43f77
commit bc5c58282f
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ export interface ImportedDataState {
elements?:
| readonly (
| (ExcalidrawElement & {
children?: [
label?: [
{ text: string } & MarkOptional<
ElementConstructorOpts,
"x" | "y"
@ -49,7 +49,7 @@ export interface ImportedDataState {
})
| {
type: Exclude<ExcalidrawGenericElement["type"], "selection">;
children?: [
label?: [
{ text: string } & MarkOptional<
ElementConstructorOpts,
"x" | "y"