Skip to content

Commit

Permalink
Add expect-error to two emain event handlers (#1052)
Browse files Browse the repository at this point in the history
There were two type errors after the most recent electron upgrade, but
they're both benign (event handler parameter mismatch) so I am adding
ts-expect-error to both instances.
  • Loading branch information
esimkowitz authored Oct 17, 2024
1 parent 594bc68 commit 88445b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emain/emain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,12 @@ function createBrowserWindow(clientId: string, waveWindow: WaveWindow, fullConfi
}
});
win.on(
// @ts-expect-error
"resize",
debounce(400, (e) => mainResizeHandler(e, waveWindow.oid, win))
);
win.on(
// @ts-expect-error
"move",
debounce(400, (e) => mainResizeHandler(e, waveWindow.oid, win))
);
Expand Down

0 comments on commit 88445b2

Please sign in to comment.