Skip to content

Commit

Permalink
Fix gridlines actions params
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Jul 15, 2024
1 parent f4c3c31 commit e685b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selenite/commons",
"version": "0.3.2",
"version": "0.3.3",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/actions/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function drawLines({
ctx.restore();
}

export const gridLines: Action<HTMLCanvasElement, { transform: Transform; spacing?: number, visibility?: boolean }> = (
export const gridLines: Action<HTMLCanvasElement, Omit<Parameters<typeof drawLines>[0], 'canvas'> & {visibility?: boolean}> = (
canvas,
params
) => {
Expand Down

0 comments on commit e685b3d

Please sign in to comment.