build: enhance tsconfig type check (#2732)

This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by GitHub
parent fc9a9f479b
commit b383ce36cd
34 changed files with 111 additions and 68 deletions
@@ -27,6 +27,7 @@ import { contextBridge, ipcRenderer } from 'electron';
if (validateIPC(channel)) {
return ipcRenderer.invoke(channel, ...args);
}
return void 0;
},
on(
@@ -35,9 +36,8 @@ import { contextBridge, ipcRenderer } from 'electron';
) {
if (validateIPC(channel)) {
ipcRenderer.on(channel, listener);
return this;
}
return this;
},
once(
@@ -46,9 +46,8 @@ import { contextBridge, ipcRenderer } from 'electron';
) {
if (validateIPC(channel)) {
ipcRenderer.once(channel, listener);
return this;
}
return this;
},
removeListener(
@@ -57,9 +56,8 @@ import { contextBridge, ipcRenderer } from 'electron';
) {
if (validateIPC(channel)) {
ipcRenderer.removeListener(channel, listener);
return this;
}
return this;
},
},
};