Type 'null' is not assignable to type 'BrowserWindow'.
andrewrynhard opened this issue · 2 comments
andrewrynhard commented
$ tsc
main.ts:27:5 - error TS2322: Type 'null' is not assignable to type 'BrowserWindow'.
27 mainWindow = null
~~~~~~~~~~
Found 1 error.
NetOpWibby commented
let mainWindow: Electron.BrowserWindow;