Commit 5d3ba50
authored
chore: infer MongoClientOptions type instead of importing it (#403)
Rather than importing it, define it in a slightly more reliable way
by referring to the second argument of `CliServiceProvider.connect()`.
For example, this also enables usage of `tlsUseSystemCA`, which is
included in `DevtoolsConnectOptions` (which is now the actual type
accepted by `CliServiceProvider.connect()`) but not in the driver's
`MongoClientOptions`.1 parent 87484f8 commit 5d3ba50
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
0 commit comments