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.
This commit is contained in:
CyrusNajmabadi 2019-07-09 12:39:06 -07:00 committed by GitHub
parent c186e6d0a1
commit 26e30ab136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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