mirror of https://github.com/grpc/grpc-node.git
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:
parent
c186e6d0a1
commit
26e30ab136
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue