@zsviczian/excalidraw
Version:
Excalidraw as a React component
19 lines (18 loc) • 474 B
TypeScript
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
export type ChartElements = readonly NonDeletedExcalidrawElement[];
export interface Spreadsheet {
title: string | null;
labels: string[] | null;
series: SpreadsheetSeries[];
}
export interface SpreadsheetSeries {
title: string | null;
values: number[];
}
export type ParseSpreadsheetResult = {
ok: false;
reason: string;
} | {
ok: true;
data: Spreadsheet;
};