HomePhabricator
Diffusion Comm 8c9c9a2e187c

[keyserver] add flow types for grpc client

Description

[keyserver] add flow types for grpc client

Summary: adding the relevant types for the grpc client. I had to use any/mixed a few times to avoid pulling in more dependencies like the events library and http2.

Test Plan:
ran flow in keyserver
also, after the subsequent diff, I added the following code to keyserver.js and re-ran flow:

+  const user = { userID: '12345', deviceID: 'ahhhhh' };
+  const publicKey = identityClient.getUserPublicKey(user, (e, o) => {
+    if (e) {
+      console.log(e);
+    } else {
+      console.log(o);
+    }
+  });
+  console.log(publicKey);

also ran yarn dev and got back the expected public key

Reviewers: atul, ginsu, ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek, abosh

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

Details

Provenance
varunAuthored on Nov 10 2022, 3:43 PM
Reviewer
ashoat
Differential Revision
D5609: [keyserver] add flow types for grpc client
Parents
rCOMMe0416bb59a59: [native] fixed tooltip triangle color
Branches
Unknown
Tags
Unknown