From 10a92f100a1e0923c72dfa7610d850fff8e7e9f2 Mon Sep 17 00:00:00 2001 From: sudacode Date: Thu, 26 Feb 2026 18:48:16 -0800 Subject: [PATCH] fix: type annotate overlay runtime test mock callbacks --- src/main/overlay-runtime.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/overlay-runtime.test.ts b/src/main/overlay-runtime.test.ts index a65a51e..fcc4cf4 100644 --- a/src/main/overlay-runtime.test.ts +++ b/src/main/overlay-runtime.test.ts @@ -75,7 +75,7 @@ function createMockWindow(): MockWindow & { webContents: { isLoading: () => state.loading, getURL: () => state.url, - send: (channel, payload) => { + send: (channel: string, payload?: unknown) => { if (payload === undefined) { state.sent.push([channel]); return; @@ -84,7 +84,7 @@ function createMockWindow(): MockWindow & { }, focused: false, isFocused: () => state.webContentsFocused, - once: (_event, cb) => { + once: (_event: 'did-finish-load', cb: () => void) => { state.loadCallbacks.push(cb); }, focus: () => {