mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-20 04:31:21 +01:00
18 lines
432 B
TypeScript
18 lines
432 B
TypeScript
/* eslint-disable @typescript-eslint/no-namespace */
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
import { ipcRenderer, IpcRenderer } from 'electron'
|
|
|
|
declare global {
|
|
namespace NodeJS {
|
|
interface Global {
|
|
ipcRenderer: IpcRenderer
|
|
}
|
|
}
|
|
}
|
|
|
|
// Since we disabled nodeIntegration we can reintroduce
|
|
// needed node functionality here
|
|
process.once('loaded', () => {
|
|
global.ipcRenderer = ipcRenderer
|
|
})
|