You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deno run --lock=lock.json --lock-write --allow-all index.ts
Compile file:///home/runner/util-inspect/index.ts
error: TS2345 [ERROR]: Argument of type '{ depth: any; iterableLimit: any; compact: boolean; sorted: boolean; }' is not assignable to parameter of type 'InspectOptions'.
Object literal may only specify known properties, and 'iterableLimit' does not exist in type 'InspectOptions'.
iterableLimit: opts.iterableLimit ?? 100,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.65.0/node/util.ts:11:5
exit status 1
debugging
Unknown why this happening though, as here are the relevant sources:
/** Traversal depth for nested objects. Defaults to 4. */
depth?: number;
/** Sort Object, Set and Map entries by key. Defaults to false. */
sorted?: boolean;
/** Add a trailing comma for multiline collections. Defaults to false. */
trailingComma?: boolean;
/** Try to fit more than one entry of a collection on the same line.
* Defaults to true. */
compact?: boolean;
/** The maximum number of iterable entries to print. Defaults to 100. */
iterableLimit?: number;
}
My only guess is that opts: any is done, which should be opts: InspectOptions however, I am unsure how that file can import InspectOptions, or even if that is the correct solution.
error
https://repl.it/@balupton/util-inspect#index.ts
debugging
Unknown why this happening though, as here are the relevant sources:
deno/std/node/util.ts
Lines 7 to 15 in 9f1dcc1
deno/cli/dts/lib.deno.ns.d.ts
Lines 1943 to 1955 in 9f1dcc1
My only guess is that
opts: any
is done, which should beopts: InspectOptions
however, I am unsure how that file can importInspectOptions
, or even if that is the correct solution./ref #6833
The text was updated successfully, but these errors were encountered: