types.ts 422 B

1234567891011121314151617
  1. import { ExcalidrawElement } from "../element/types";
  2. import { AppState, LibraryItems } from "../types";
  3. export interface DataState {
  4. type?: string;
  5. version?: string;
  6. source?: string;
  7. elements: readonly ExcalidrawElement[];
  8. appState: MarkOptional<AppState, "offsetTop" | "offsetLeft"> | null;
  9. }
  10. export interface LibraryData {
  11. type?: string;
  12. version?: number;
  13. source?: string;
  14. library?: LibraryItems;
  15. }