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)
Sun, Nov 24, 9:02 PM
Unknown Object (File)
Sun, Nov 24, 7:03 PM
Unknown Object (File)
Oct 29 2024, 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
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