Types across processes without db definitions in shared code (Electron)
I have the db schema definitions and things like insert schemas and all that defined in the main code but I'd very much like to have the insert, select schemas and in general type definitions from them available in renderer too - but don't know how to do it without putting the code in a shared folder but that seems bad since I might accidentally have that code run in the renderer process which is not good? Something like that.
0 Replies