mirror of https://github.com/grpc/grpc-node.git
Merge pull request #1069 from mpminardi/grpc-js_api_changes
grpc-js Api changes for using statically generated code with grpc-js
This commit is contained in:
commit
56df09ceb0
|
|
@ -36,6 +36,7 @@ import {
|
|||
loadPackageDefinition,
|
||||
makeClientConstructor,
|
||||
Serialize,
|
||||
ServiceDefinition
|
||||
} from './make-client';
|
||||
import { Metadata } from './metadata';
|
||||
import {
|
||||
|
|
@ -46,6 +47,9 @@ import {
|
|||
import { KeyCertPair, ServerCredentials } from './server-credentials';
|
||||
import { StatusBuilder } from './status-builder';
|
||||
import {
|
||||
handleBidiStreamingCall,
|
||||
handleServerStreamingCall,
|
||||
handleUnaryCall,
|
||||
ServerUnaryCall,
|
||||
ServerReadableStream,
|
||||
ServerWritableStream,
|
||||
|
|
@ -227,10 +231,19 @@ export {
|
|||
ServerReadableStream,
|
||||
ServerWritableStream,
|
||||
ServerDuplexStream,
|
||||
ServiceDefinition,
|
||||
UntypedHandleCall,
|
||||
UntypedServiceImplementation,
|
||||
};
|
||||
|
||||
/**** Server ****/
|
||||
|
||||
export {
|
||||
handleBidiStreamingCall,
|
||||
handleServerStreamingCall,
|
||||
handleUnaryCall,
|
||||
};
|
||||
|
||||
/* tslint:disable:no-any */
|
||||
export type Call =
|
||||
| ClientUnaryCall
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export interface MethodDefinition<RequestType, ResponseType> {
|
|||
}
|
||||
|
||||
export interface ServiceDefinition {
|
||||
[index: string]: MethodDefinition<object, object>;
|
||||
[index: string]: MethodDefinition<any, any>;
|
||||
}
|
||||
|
||||
export interface ProtobufTypeDefinition {
|
||||
|
|
|
|||
Loading…
Reference in New Issue