fix restoring appState (#2182)

This commit is contained in:
David Luzar 2020-09-22 21:51:49 +02:00 committed by GitHub
parent b2822f3538
commit adb1ac5788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 74 additions and 49 deletions

View file

@ -14,7 +14,7 @@ import { Point as RoughPoint } from "roughjs/bin/geometry";
import { SocketUpdateDataSource } from "./data";
import { LinearElementEditor } from "./element/linearElementEditor";
import { SuggestedBinding } from "./element/binding";
import { DataState } from "./data/types";
import { ImportedDataState } from "./data/types";
export type FlooredNumber = number & { _brand: "FlooredNumber" };
export type Point = Readonly<RoughPoint>;
@ -127,7 +127,7 @@ export interface ExcalidrawProps {
elements: readonly ExcalidrawElement[],
appState: AppState,
) => void;
initialData?: DataState;
initialData?: ImportedDataState;
user?: {
name?: string | null;
};