From 85f82f8685d009e2ac0333841bd40faf55f4b45b Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Tue, 9 Jul 2019 12:39:06 -0700 Subject: [PATCH] Fix 'noImplicitAny' issue with declaration file. The latest release of grpc-node cannot be used in a typescript project that uses -noImplicitAny. This is due to a signature being added without a specified return type. This causes the return type to implicitly be 'any' which TS explicitly disallows. For projects that use strict flags to catch lots of bugs, this prevents usage of this version of grpc entirely. --- 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 841da737f..718f6bdb4 100644 --- a/packages/grpc-native-core/index.d.ts +++ b/packages/grpc-native-core/index.d.ts @@ -579,7 +579,7 @@ declare module "grpc" { * These options only have any effect when passed at the beginning of * a client request. */ - setOptions(options: MetadataOptions); + setOptions(options: MetadataOptions): void; } export type MetadataValue = string | Buffer;