Files
excalidraw/src/data/types.ts
2020-07-27 14:29:19 +02:00

18 lines
422 B
TypeScript

import { ExcalidrawElement } from "../element/types";
import { AppState, LibraryItems } from "../types";
export interface DataState {
type?: string;
version?: string;
source?: string;
elements: readonly ExcalidrawElement[];
appState: MarkOptional<AppState, "offsetTop" | "offsetLeft"> | null;
}
export interface LibraryData {
type?: string;
version?: number;
source?: string;
library?: LibraryItems;
}