Skip to content

Commit

Permalink
Type dataCache internal store more strictly
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 30, 2024
1 parent 5ea75c3 commit 6848502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jcanvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ interface JCanvasMaps {
}

interface JCanvasCache {
dataCache: Record<string, any>;
dataCache: {
_canvas?: HTMLCanvasElement;
_data?: JCanvasInternalData;
};
propCache: Partial<JCanvasObject>;
imageCache: Record<string, HTMLImageElement>;
pathCache: Record<string, Path2D>;
Expand Down

0 comments on commit 6848502

Please sign in to comment.