We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8cd5a commit 923b44bCopy full SHA for 923b44b
packages/grpc-js/src/client.ts
@@ -55,7 +55,7 @@ const INTERCEPTOR_SYMBOL = Symbol();
55
const INTERCEPTOR_PROVIDER_SYMBOL = Symbol();
56
const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol();
57
58
-function isFunction<ResponseType>(arg: Metadata | CallOptions | UnaryCallback<ResponseType>): boolean {
+function isFunction<ResponseType>(arg: Metadata | CallOptions | UnaryCallback<ResponseType> | undefined): arg is UnaryCallback<ResponseType>{
59
return Object.prototype.toString.call(arg) === '[object Function]'
60
}
61
0 commit comments