Skip to content

Commit 85f82f8

Browse files
CyrusNajmabadiCapOM
authored andcommitted
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.
1 parent 0a616e3 commit 85f82f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-native-core/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ declare module "grpc" {
579579
* These options only have any effect when passed at the beginning of
580580
* a client request.
581581
*/
582-
setOptions(options: MetadataOptions);
582+
setOptions(options: MetadataOptions): void;
583583
}
584584

585585
export type MetadataValue = string | Buffer;

0 commit comments

Comments
 (0)