Fix remaining type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-03-22 15:50:11 -04:00
1 parent dbb9a0f5a8
commit 31a3369dd0
22 files changed
+121 -132

No files matched your search

@@ -10,7 +10,7 @@ const enlistMessageChannelListenerInjectable = getInjectable({
const ipcMain = di.inject(ipcMainInjectable);
return ({ channel, handler }) => {
const nativeOnCallback = (nativeEvent: IpcMainEvent, message: unknown) => {
const nativeOnCallback = (nativeEvent: IpcMainEvent, message: any) => {
handler(message, { frameId: nativeEvent.frameId, processId: nativeEvent.processId });
};
@@ -10,7 +10,7 @@ const enlistMessageChannelListenerInjectable = getInjectable({
const ipcRenderer = di.inject(ipcRendererInjectable);
return ({ channel, handler }) => {
const nativeCallback = (event: IpcRendererEvent, message: unknown) => {
const nativeCallback = (_: IpcRendererEvent, message: any) => {
handler(message);
};