From 1e197556481181dbf1f0239f4ec2740cfa5aa790 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 21 Jun 2025 11:40:02 -0700 Subject: initial commit --- src/preload/index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/preload/index.d.ts (limited to 'src/preload/index.d.ts') diff --git a/src/preload/index.d.ts b/src/preload/index.d.ts new file mode 100644 index 0000000..dd64a3f --- /dev/null +++ b/src/preload/index.d.ts @@ -0,0 +1,19 @@ +declare global { + interface Window { + electron: { + ipcRenderer: { + send: (channel: string, data?: unknown) => void + on: (channel: string, func: (...args: unknown[]) => void) => void + removeListener: (channel: string, func: (...args: unknown[]) => void) => void + } + config: { + getChannelNicknames: () => Promise> + setChannelNickname: (channelId: string, nickname: string) => Promise + removeChannelNickname: (channelId: string) => Promise + getChannelList: () => Promise> + } + } + } +} + +export {} -- cgit v1.2.3