Don't export types
This commit is contained in:
parent
54eb016142
commit
af1ed8a2fb
@ -5,7 +5,7 @@ import grpc from 'grpc'
|
|||||||
import pbFile from './pbFile.js'
|
import pbFile from './pbFile.js'
|
||||||
|
|
||||||
|
|
||||||
export type TestMessage = {|
|
type TestMessage = {|
|
||||||
a?: string;
|
a?: string;
|
||||||
b?: number;
|
b?: number;
|
||||||
c?: number;
|
c?: number;
|
||||||
@ -18,38 +18,38 @@ export type TestMessage = {|
|
|||||||
r?: Array<number>;
|
r?: Array<number>;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestNoStreamRequest = {|
|
type TestNoStreamRequest = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestNoStreamReply = {|
|
type TestNoStreamReply = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
err_msg?: string;
|
err_msg?: string;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamRequestRequest = {|
|
type TestStreamRequestRequest = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamRequestReply = {|
|
type TestStreamRequestReply = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
err_msg?: string;
|
err_msg?: string;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamReplyRequest = {|
|
type TestStreamReplyRequest = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamReplyReply = {|
|
type TestStreamReplyReply = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
err_msg?: string;
|
err_msg?: string;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamBothRequest = {|
|
type TestStreamBothRequest = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type TestStreamBothReply = {|
|
type TestStreamBothReply = {|
|
||||||
message?: TestMessage;
|
message?: TestMessage;
|
||||||
err_msg?: string;
|
err_msg?: string;
|
||||||
|};
|
|};
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
{{$Package:=.File.Package}}
|
{{$Package:=.File.Package}}
|
||||||
import grpc from 'grpc'
|
import grpc from 'grpc'
|
||||||
import pbFile from './pbFile.js'
|
import pbFile from './pbFile.js'
|
||||||
{{range .File.EnumType}}export type {{.Name}} = {{range .Value}}
|
{{range .File.EnumType}}type {{.Name}} = {{range .Value}}
|
||||||
| '{{.Name}}'{{end}}
|
| '{{.Name}}'{{end}}
|
||||||
;{{end}}
|
;{{end}}
|
||||||
{{range .File.MessageType}}
|
{{range .File.MessageType}}
|
||||||
export type {{.Name}} = {|{{range .Field}}
|
type {{.Name}} = {|{{range .Field}}
|
||||||
{{.Name}}?: {{. | jsType}};{{end}}{{range .EnumType}}
|
{{.Name}}?: {{. | jsType}};{{end}}{{range .EnumType}}
|
||||||
{{.Name}}?:{{range .Value}}
|
{{.Name}}?:{{range .Value}}
|
||||||
| '{{.Name}}'{{end}}
|
| '{{.Name}}'{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user