Open bitrix1 opened 5 years ago
Import window as any in App.tsx
const electron = (window as any).require('electron');
const fs = electron.remote.require('fs');
console.log('electron', electron);
const ipcRenderer = electron.ipcRenderer;
I have tried this, problem is that it removes Type information and TypeScript is now clueless.
Unfortunately I have no experience with Typescript, so I can't offer a suggestion on how to get this working with it.
this was for @bitrix1