mirror of https://github.com/grpc/grpc-node.git
Fix the definition of Service<T>
Type aliases will not give the correct inferred type in Server.addService() so use an interface here.
This commit is contained in:
parent
b68e5dd73b
commit
71bee4ab41
|
@ -132,7 +132,7 @@ declare module "grpc" {
|
||||||
*/
|
*/
|
||||||
export function setLogVerbosity(verbosity: logVerbosity): void;
|
export function setLogVerbosity(verbosity: logVerbosity): void;
|
||||||
|
|
||||||
export type Service<T> = ProtobufService;
|
export interface Service<T> extends ProtobufService {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Server object that stores request handlers and delegates incoming requests to those handlers
|
* Server object that stores request handlers and delegates incoming requests to those handlers
|
||||||
|
|
Loading…
Reference in New Issue