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 e46a499 commit f2314a9Copy full SHA for f2314a9
src/connection_string.ts
@@ -23,6 +23,7 @@ import {
23
ServerApiVersion
24
} from './mongo_client';
25
import {
26
+ type MongoDBLogWritable,
27
MongoLoggableComponent,
28
MongoLogger,
29
type MongoLoggerEnvOptions,
@@ -1250,10 +1251,7 @@ export const OPTIONS = {
1250
1251
if (
1252
!(
1253
(typeof value === 'string' && ['stderr', 'stdout'].includes(value)) ||
- (value &&
1254
- typeof value === 'object' &&
1255
- 'write' in value &&
1256
- typeof value.write === 'function')
+ (typeof value === 'object' && typeof (value as MongoDBLogWritable)?.write === 'function')
1257
)
1258
) {
1259
throw new MongoAPIError(
0 commit comments