From 0627e825bf7f8d07b222248f1228c5e4c741f8e7 Mon Sep 17 00:00:00 2001 From: Deveshi Dwivedi Date: Fri, 28 Jun 2024 15:55:11 +0530 Subject: [PATCH] add declaration for image --- common/types/global.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/types/global.d.ts b/common/types/global.d.ts index bc3138b..8c3de07 100644 --- a/common/types/global.d.ts +++ b/common/types/global.d.ts @@ -1,6 +1,6 @@ export declare global { - type Shape= 'line'|'circle'|'rect' ; + type Shape= 'line'|'circle'|'rect'| 'image' ; interface CtxOptions{ lineWidth: number; lineColor: string; @@ -9,7 +9,6 @@ export declare global { } interface Move { - shape: Shape; radius: number; width: number; height: number; @@ -17,6 +16,7 @@ export declare global { options: CtxOptions; timestamp: number; eraser: boolean; + base64: string; } type Room = {usersMoves: Map;