Header menu logo issie

ElectronModule Module

The `electron` module itself, for the main process only. These bindings used to live in ElectronAPI.fs, which both projects compile - the renderer needs its several hundred type definitions. But a binding is an import, and `import * from "electron"` runs when the file loads, so the renderer was requiring electron simply by using its types. A renderer without node integration cannot do that, and it is not a lazy failure: it throws as the bundle loads, before any of Issie runs. So the types stayed shared and the module came here, where requiring it is exactly right. If the renderer ever appears to need one of these values again, that is the signal that something wants a bridge operation instead.

Functions and values

Function or value Description

common

Full Usage: common

Returns: IExports
Returns: IExports

electron

Full Usage: electron

Returns: IExports
Returns: IExports

main

Full Usage: main

Returns: IExports
Returns: IExports

mainProcess

Full Usage: mainProcess

Returns: IExports
Returns: IExports

renderer

Full Usage: renderer

Returns: IExports
Returns: IExports

Type something to start searching.