electron-typescript-example
electron-typescript-example copied to clipboard
create typeORM before electron main process init.
Dear dev, I have read this repo, and I found bellow code:
https://github.com/typeorm/electron-typescript-example/blob/cb27a927b730fbe6dbe08b744528a64a40bf9b57/src/index.ts#L14-L20
Actually, I want to use the database data like width
and height
to init BrowserWindow
, Cloud I init TypeORM before we create BrowserWindow
?
I try put init typeOrm before or after createWindow
function, there always error like: