Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
1 reply
domi?

Module augmentation - Typesafe Electron IPC

Hey 👋

I want to extend the Electron type definitions to make the channels for IPC communication more typesafe. For this, I'll need to override the types of the class BrowserWindow. Only the types, the underlying JavaScript will be the same.

The problem is, I can't figure out how to override the electron module type defintions without running into Duplicate identifier or Cannot redeclare block-scoped variable.
Was this page helpful?