Page MenuHomePhabricator

[lib] define Tunnelbroker API in Flow types
ClosedPublic

Authored by kamil on Oct 25 2023, 6:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 2, 6:27 PM
Unknown Object (File)
Mon, Jul 1, 3:38 AM
Unknown Object (File)
Sun, Jun 30, 12:41 AM
Unknown Object (File)
Sat, Jun 29, 3:24 PM
Unknown Object (File)
Sat, Jun 29, 7:12 AM
Unknown Object (File)
Sat, Jun 29, 7:12 AM
Unknown Object (File)
Sat, Jun 29, 7:12 AM
Unknown Object (File)
Sat, Jun 29, 7:12 AM
Subscribers

Details

Summary

Adding Rust's types to JS codebase.

We have right now fragmentary types in tunnelbroker-messages.js but this file will be removed, after new shared interface will be implemented.

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Oct 27 2023, 5:30 AM

Nit: I would prefer to see the validators just below the corresponding type definition. IMO it makes it harder for people to forget to update validators when updating the types.

shared/tunnelbroker_messages/src/messages/mod.rs
21–30 ↗(On Diff #32427)

In Rust we normally use // for each line instead of multiline comments.

This revision is now accepted and ready to land.Oct 30 2023, 6:07 AM

Nit: I would prefer to see the validators just below the corresponding type definition. IMO it makes it harder for people to forget to update validators when updating the types.

yeah agree

This revision was automatically updated to reflect the committed changes.