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.
2 parents fe19844 + 8cc5f6c commit 255618eCopy full SHA for 255618e
packages/grpc-js/src/channel.ts
@@ -177,18 +177,8 @@ export class ChannelImplementation implements Channel {
177
);
178
}
179
if (options) {
180
- if (
181
- typeof options !== 'object' ||
182
- !Object.values(options).every(
183
- (value) =>
184
- typeof value === 'string' ||
185
- typeof value === 'number' ||
186
- typeof value === 'undefined'
187
- )
188
- ) {
189
- throw new TypeError(
190
- 'Channel options must be an object with string or number values'
191
- );
+ if (typeof options !== 'object') {
+ throw new TypeError('Channel options must be an object');
192
193
194
const originalTargetUri = parseUri(target);
0 commit comments