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)
Mon, May 13, 12:15 AM
Unknown Object (File)
Fri, May 3, 3:05 PM
Unknown Object (File)
Apr 6 2024, 1:19 AM
Unknown Object (File)
Apr 4 2024, 7:03 PM
Unknown Object (File)
Apr 4 2024, 7:03 PM
Unknown Object (File)
Apr 4 2024, 6:43 PM
Unknown Object (File)
Mar 17 2024, 7:39 AM
Unknown Object (File)
Mar 15 2024, 12:14 PM
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
Lint Not Applicable
Unit
Tests Not Applicable