Add standalone type definitions

This commit is contained in:
Mitchell McCaffrey
2021-07-08 12:01:02 +10:00
parent 123ebd880a
commit 45a4443dd1
17 changed files with 388 additions and 0 deletions

15
src/types/MapState.ts Normal file
View File

@@ -0,0 +1,15 @@
import { Drawing } from "./Drawing";
import { Fog } from "./Fog";
import { Note } from "./Note";
import { TokenState } from "./TokenState";
export type EditFlag = "drawing" | "tokens" | "notes" | "fog";
export type MapState = {
tokens: Record<string, TokenState>;
drawShapes: Record<string, Drawing>;
fogShapes: Record<string, Fog>;
editFlags: Array<EditFlag>;
notes: Record<string, Note>;
mapId: string;
};