diff options
| author | Hank <hank@mullvad.net> | 2022-10-07 14:58:03 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-10-07 14:58:03 +0200 |
| commit | d5d97969cfc391a491c6aeb5c5826a95dcfa197a (patch) | |
| tree | 5fec81c49b93e722ddaada635a28e967e62bf344 /gui/src/shared | |
| parent | e8ea2448b50d52026f3ccae7e84535911ea7b06b (diff) | |
| parent | 48cf534d6610161e5db730dc91d187da79494aa7 (diff) | |
| download | mullvadvpn-d5d97969cfc391a491c6aeb5c5826a95dcfa197a.tar.xz mullvadvpn-d5d97969cfc391a491c6aeb5c5826a95dcfa197a.zip | |
Merge branch 'update-packages'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-helpers.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/shared/ipc-helpers.ts b/gui/src/shared/ipc-helpers.ts index 1680b45d11..fda5c2d3b5 100644 --- a/gui/src/shared/ipc-helpers.ts +++ b/gui/src/shared/ipc-helpers.ts @@ -5,7 +5,9 @@ import { capitalize } from './string-helpers'; type Handler<T, R> = (callback: (arg: T) => R) => void; type Sender<T, R> = (arg: T) => R; -type Notifier<T> = (webContents: WebContents | undefined, arg: T) => void; +// Remove export after upgrading to Electron 21+ and removal of code to curry notifiers with +// webContents in ../main/ipc-event-channel.ts. +export type Notifier<T> = (webContents: WebContents | undefined, arg: T) => void; type Listener<T> = (callback: (arg: T) => void) => void; interface MainToRenderer<T> { |
