Page MenuHomePhabricator

[lib] Factor out CANCELLED_ERROR into keyserver-conn-types.js
ClosedPublic

Authored by ashoat on Mar 3 2024, 8:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 9:48 AM
Unknown Object (File)
Oct 4 2024, 3:27 AM
Unknown Object (File)
Oct 4 2024, 3:27 AM
Unknown Object (File)
Oct 4 2024, 3:26 AM
Unknown Object (File)
Oct 4 2024, 3:26 AM
Unknown Object (File)
Sep 3 2024, 10:00 AM
Unknown Object (File)
Aug 29 2024, 12:35 PM
Unknown Object (File)
Aug 28 2024, 8:08 AM
Subscribers
None

Details

Summary

In a following diff, I want to use this constant from lib/keyserver-conn/recovery-utils.js. Since that file already imports from keyserver-connection-handler.js, this has the risk of introducing an import cycle. To preempt that I decided to extract the constant to a types file.

I also snuck in an unrelated minor change: I replaced the export at the end of keyserver-conn-types.js with individual export lines at the declarations, to make the style consistent throughout the file.

Depends on D11220

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage