Skip to content

Commit

Permalink
add interface for eraser
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 27, 2024
1 parent 6c3eda2 commit a5e1d6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ export declare global {
interface CtxOptions{
lineWidth: number;
lineColor: string;
erase: boolean;
}

interface Move {
path: [number, number][];
options: CtxOptions;
eraser: boolean;
}

type Room = {usersMoves: Map<string, Move[]>;
Expand Down

0 comments on commit a5e1d6b

Please sign in to comment.