Skip to content

Commit 24ef043

Browse files
committed
apparently inspect passed as the final parameter isn't always a thing
1 parent f85dc9f commit 24ef043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/shell-api/src/deep-inspect-service-provider-wrapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type {
33
ServiceProviderAbstractCursor,
44
} from '@mongosh/service-provider-core';
55
import { ServiceProviderCore } from '@mongosh/service-provider-core';
6-
import type { InspectOptions, inspect as _inspect } from 'util';
6+
import type { InspectOptions } from 'util';
7+
import { inspect } from 'util';
78
import type { Document } from '@mongosh/service-provider-core';
89

910
export class DeepInspectServiceProviderWrapper
@@ -223,8 +224,7 @@ function forwardedMethod<
223224
function customDocumentInspect(
224225
this: Document,
225226
depth: number,
226-
inspectOptions: InspectOptions,
227-
inspect: typeof _inspect
227+
inspectOptions: InspectOptions
228228
) {
229229
const newInspectOptions = {
230230
...inspectOptions,

0 commit comments

Comments
 (0)