Skip to content

Commit

Permalink
add declaration for shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 28, 2024
1 parent b8c2321 commit 19e68f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
export declare global {

type Shape= 'line'|'circle'|'rect' ;
interface CtxOptions{
lineWidth: number;
lineColor: string;
erase: boolean;
shape: Shape;
}

interface Move {
shape: Shape;
radius: number;
width: number;
height: number;
path: [number, number][];
options: CtxOptions;
timestamp: number;
Expand Down

0 comments on commit 19e68f3

Please sign in to comment.