From 71bee4ab418efca772beae3565a1a22ea65b0681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Wachter?= Date: Wed, 8 Nov 2017 20:51:19 +0100 Subject: [PATCH] Fix the definition of Service Type aliases will not give the correct inferred type in Server.addService() so use an interface here. --- packages/grpc-native-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grpc-native-core/index.d.ts b/packages/grpc-native-core/index.d.ts index 4d90085f..edf66167 100644 --- a/packages/grpc-native-core/index.d.ts +++ b/packages/grpc-native-core/index.d.ts @@ -132,7 +132,7 @@ declare module "grpc" { */ export function setLogVerbosity(verbosity: logVerbosity): void; - export type Service = ProtobufService; + export interface Service extends ProtobufService {} /** * Server object that stores request handlers and delegates incoming requests to those handlers