fix: type annotate overlay runtime test mock callbacks

This commit is contained in:
2026-02-26 18:48:16 -08:00
parent a03388a38f
commit 10a92f100a

View File

@@ -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: () => {