From ad3172def0d4f09751a7960169bbd72ca27c4e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Mon, 15 Nov 2021 23:16:10 +0800 Subject: [PATCH] Update global.d.ts --- src/renderer/src/global.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/global.d.ts b/src/renderer/src/global.d.ts index 607d83f..8d1a260 100644 --- a/src/renderer/src/global.d.ts +++ b/src/renderer/src/global.d.ts @@ -3,11 +3,9 @@ export { } declare global { interface Window { - /** Expose some Api through preload script */ - bridge: { - fs: typeof import('fs') - ipcRenderer: import('electron').IpcRenderer - removeLoading: () => void - } + // Expose some Api through preload script + fs: typeof import('fs') + ipcRenderer: import('electron').IpcRenderer + removeLoading: () => void } }