Skip to content

Commit d1971c8

Browse files
zbauman3Desplandis
authored andcommitted
🤖 Merge PR DefinitelyTyped#65413 [debug] add type for inspectOpts by @zbauman3
* fix: add type for inspectOpts * Noop change to trigger workflows
1 parent e6f0ae3 commit d1971c8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

types/debug/debug-tests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ debug2.log = function(this: debug1.Debugger, ...args) {
5353
diff,
5454
});
5555
};
56+
57+
if (debug2.inspectOpts) {
58+
debug2.inspectOpts.depth = 12;
59+
}

types/debug/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ declare namespace debug {
3030
skips: RegExp[];
3131

3232
formatters: Formatters;
33+
34+
inspectOpts?: {
35+
hideDate?: boolean | number | null;
36+
colors?: boolean | number | null;
37+
depth?: boolean | number | null;
38+
showHidden?: boolean | number | null;
39+
};
3340
}
3441

3542
type IDebug = Debug;

0 commit comments

Comments
 (0)