HomePhabricator
Diffusion Comm ecc154221fa9

[Flow202][keyserver][skip-ci] [5/x] Address type errors in…

Description

[Flow202][keyserver][skip-ci] [5/x] Address type errors in keyserver/src/push/utils.js

Summary:
There are some noteworthy changes here – some necessary to address Flow issues, some opinionated ones from me, and in some cases the new version of Flow identified actual type issues.

As such, putting the changes in this file up for review separately. I'll annotate the noteworthy changes inline.

NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D9852

Test Plan: Confirm the Flow errors go away

Reviewers: marcin, michal

Reviewed By: marcin, michal

Subscribers: tomek

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