HomePhabricator
Diffusion Comm 8e680d7716fe

[desktop] Flow type electron

Description

[desktop] Flow type electron

Summary:
ENG-2221
This diff adds flow types for the electron package (or at least for the parts we use).

The types are mostly taken from the documentation but I been also looking at the typescript types (which are generated automatically from the documentation anyway).

Some modules are only available in the main process (main.js) or in the renderer process (preload.js). To make that explicit I re-export the appropriate types in electron/main and electron/renderer modules. I use them instead of the electron module which contains all types.

Test Plan: Run flow in desktop.

Reviewers: tomek, ginsu, inka, ashoat

Reviewed By: ashoat

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D6176

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Jan 4 2023, 6:08 AM
Reviewer
ashoat
Differential Revision
D6176: [desktop] Flow type electron
Parents
rCOMM21395b9f8ad8: [desktop] Type bridge object between desktop and web
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM8e680d7716fe: [desktop] Flow type electron (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Jan 11 2023, 7:10 AM