Skip to content

Commit

Permalink
add declaration for image
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 28, 2024
1 parent 48d328b commit 0627e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export declare global {

type Shape= 'line'|'circle'|'rect' ;
type Shape= 'line'|'circle'|'rect'| 'image' ;
interface CtxOptions{
lineWidth: number;
lineColor: string;
Expand All @@ -9,14 +9,14 @@ export declare global {
}

interface Move {
shape: Shape;
radius: number;
width: number;
height: number;
path: [number, number][];
options: CtxOptions;
timestamp: number;
eraser: boolean;
base64: string;
}

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

0 comments on commit 0627e82

Please sign in to comment.