Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 577b8e9

Browse files
authored
Merge pull request #228 from exoego/node14-console
[console] Add groupdIndentation to ConsoleOptions (Node.js v14.2.0+)
2 parents b84c9bd + 566d6c0 commit 577b8e9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/current/src/main/scala/io/scalajs/nodejs/console_module/ConsoleOptions.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ import scala.scalajs.js.|
1616
* setting to `'auto'` will make color support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the respective stream.
1717
* This option can not be used, if `inspectOptions.colors` is set as well. Defaults to `'auto'`.
1818
* @param inspectOptions Specifies options that are passed along to [[io.scalajs.nodejs.util.Util.inspect()]].
19-
*
20-
* **Node:** This is available after Node.js v11.7.0.
19+
* Node.js v11.7.0.
20+
* @param groupIndentation Set group indentation. Default: 2.
21+
* Node.js v14.2.0.
2122
*/
2223
class ConsoleOptions(
2324
var stdout: IWritable,
2425
var stderr: js.UndefOr[IWritable] = js.undefined,
2526
var ignoreErrors: Boolean = true,
2627
var colorMode: Boolean | String = "auto",
27-
var inspectOptions: js.UndefOr[InspectOptions] = js.undefined
28+
var inspectOptions: js.UndefOr[InspectOptions] = js.undefined,
29+
var groupIndentation: js.UndefOr[Int] = js.undefined
2830
) extends js.Object

0 commit comments

Comments
 (0)