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:
André Wachter 2017-11-08 20:51:19 +01:00
parent b68e5dd73b
commit 71bee4ab41
1 changed files with 1 additions and 1 deletions

View File

@ -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