aboutsummaryrefslogtreecommitdiffstats
path: root/src/preload/index.d.ts
blob: dd64a3fb288ae804c32baaaa56653f48a67ec03a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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<Record<string, string>>
        setChannelNickname: (channelId: string, nickname: string) => Promise<boolean>
        removeChannelNickname: (channelId: string) => Promise<boolean>
        getChannelList: () => Promise<Array<{ id: string; nickname: string }>>
      }
    }
  }
}

export {}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage