aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-02 02:50:51 +0200
committerGitHub <noreply@github.com>2023-05-02 02:50:51 +0200
commitc62d05e1b32361425474928004a92338d98ba200 (patch)
tree63e2d718807055dbdbbe7d2624270d8aa138fa2d /src/main
parent6a1cb133cd6cbe2946e4c830291318e873da1d8b (diff)
downloadVencord-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.ts2
-rw-r--r--src/main/updater/git.ts2
-rw-r--r--src/main/updater/http.ts2
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";