diff options
author | V <vendicated@riseup.net> | 2023-05-02 02:50:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 02:50:51 +0200 |
commit | c62d05e1b32361425474928004a92338d98ba200 (patch) | |
tree | 63e2d718807055dbdbbe7d2624270d8aa138fa2d /src/main | |
parent | 6a1cb133cd6cbe2946e4c830291318e873da1d8b (diff) | |
download | Vencord-c62d05e1b32361425474928004a92338d98ba200.tar.gz Vencord-c62d05e1b32361425474928004a92338d98ba200.tar.bz2 Vencord-c62d05e1b32361425474928004a92338d98ba200.zip |
Refactor ipc to be strongly typed and hide impl details (#1018)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/ipcMain.ts | 2 | ||||
-rw-r--r-- | src/main/updater/git.ts | 2 | ||||
-rw-r--r-- | src/main/updater/http.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/ipcMain.ts b/src/main/ipcMain.ts index d60200f..b734f36 100644 --- a/src/main/ipcMain.ts +++ b/src/main/ipcMain.ts @@ -19,7 +19,7 @@ import "./updater"; import { debounce } from "@utils/debounce"; -import IpcEvents from "@utils/IpcEvents"; +import { IpcEvents } from "@utils/IpcEvents"; import { Queue } from "@utils/Queue"; import { BrowserWindow, ipcMain, shell } from "electron"; import { mkdirSync, readFileSync, watch } from "fs"; diff --git a/src/main/updater/git.ts b/src/main/updater/git.ts index d6a29a8..c6e5cc9 100644 --- a/src/main/updater/git.ts +++ b/src/main/updater/git.ts @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import IpcEvents from "@utils/IpcEvents"; +import { IpcEvents } from "@utils/IpcEvents"; import { execFile as cpExecFile } from "child_process"; import { ipcMain } from "electron"; import { join } from "path"; diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index e2a3520..5653d01 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -17,7 +17,7 @@ */ import { VENCORD_USER_AGENT } from "@utils/constants"; -import IpcEvents from "@utils/IpcEvents"; +import { IpcEvents } from "@utils/IpcEvents"; import { ipcMain } from "electron"; import { writeFile } from "fs/promises"; import { join } from "path"; |