The code is fully implemented in TypeScript. Within the top level folders, which organize code by functional package, we separate between the following platforms:
common/*
: Source code that only requires basic JavaScript APIs and runs in all target environments.browser/*
: Source code that requires thebrowser
APIs like access to the DOM.- May use code from:
common
.
- May use code from:
node/*
: Source code that requiresnodejs
APIs.- May use code from:
common
.
- May use code from:
electron-node/*
: Electron specific source code that requiresnodejs
APIs.- May use code from:
common
,node
.
- May use code from:
electron-browser/*
: Source code that requires the Electron renderer process APIs.- May use code from:
common
,browser
.
- May use code from:
electron-main/*
: Source code that requires the Electron main process APIs.- May use code from:
electron-node
,common
,node
.
- May use code from: