Export types
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
|
||||
import grpc from 'grpc'
|
||||
import pbFile from './pbFile.js'
|
||||
type TestEnum =
|
||||
|
||||
export type TestEnum =
|
||||
| 'ELEMENT_A'
|
||||
| 'ELEMENT_B'
|
||||
;
|
||||
|
||||
type TestMessage = {|
|
||||
export type TestMessage = {|
|
||||
a?: string;
|
||||
b?: number;
|
||||
c?: number;
|
||||
@@ -25,38 +26,38 @@ type TestMessage = {|
|
||||
;
|
||||
|};
|
||||
|
||||
type TestNoStreamRequest = {|
|
||||
export type TestNoStreamRequest = {|
|
||||
message?: TestMessage;
|
||||
|};
|
||||
|
||||
type TestNoStreamReply = {|
|
||||
export type TestNoStreamReply = {|
|
||||
message?: TestMessage;
|
||||
err_msg?: string;
|
||||
|};
|
||||
|
||||
type TestStreamRequestRequest = {|
|
||||
export type TestStreamRequestRequest = {|
|
||||
message?: TestMessage;
|
||||
|};
|
||||
|
||||
type TestStreamRequestReply = {|
|
||||
export type TestStreamRequestReply = {|
|
||||
message?: TestMessage;
|
||||
err_msg?: string;
|
||||
|};
|
||||
|
||||
type TestStreamReplyRequest = {|
|
||||
export type TestStreamReplyRequest = {|
|
||||
message?: TestMessage;
|
||||
|};
|
||||
|
||||
type TestStreamReplyReply = {|
|
||||
export type TestStreamReplyReply = {|
|
||||
message?: TestMessage;
|
||||
err_msg?: string;
|
||||
|};
|
||||
|
||||
type TestStreamBothRequest = {|
|
||||
export type TestStreamBothRequest = {|
|
||||
message?: TestMessage;
|
||||
|};
|
||||
|
||||
type TestStreamBothReply = {|
|
||||
export type TestStreamBothReply = {|
|
||||
message?: TestMessage;
|
||||
err_msg?: string;
|
||||
|};
|
||||
|
Reference in New Issue
Block a user