Skip to content

Commit d1e7329

Browse files
committed
Add mutable defaultOptions to util
1 parent 92f7bd1 commit d1e7329

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Util.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ external inspectOptions: (
1717
unit,
1818
) => inspectOptions = ""
1919

20+
type defaultInspectOptions = {
21+
mutable showHidden: bool,
22+
mutable depth: Js.Null.t<int>,
23+
mutable colors: bool,
24+
mutable customInspect: bool,
25+
mutable showProxy: bool,
26+
mutable maxArrayLength: Js.Null.t<int>,
27+
mutable breakLength: int,
28+
mutable compact: bool,
29+
mutable sorted: bool,
30+
mutable getters: bool,
31+
};
32+
@val @module("util") @scope("inspect")
33+
external defaultOptions: defaultInspectOptions = "defaultOptions"
34+
2035
module Types = {
2136
@val @module("util") @scope("types")
2237
external isAnyArrayBuffer: 'a => bool = "isAnyArrayBuffer"

0 commit comments

Comments
 (0)