Skip to content

ConsoleConstructorOptions

[<Interface>]
type ConsoleConstructorOptions =
    abstract member colorMode: ColorMode option with get, set
    abstract member groupIndentation: float option with get, set
    abstract member ignoreErrors: bool option with get, set
    abstract member inspectOptions: InspectOptions option with get, set
    abstract member stderr: WritableStream option with get, set
    abstract member stdout: WritableStream with get, set
    static member Create (stdout: WritableStream, ?stderr: WritableStream, ?ignoreErrors: bool, ?colorMode: ColorMode, ?inspectOptions: InspectOptions, ?groupIndentation: float) : ConsoleConstructorOptions
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Declared inside

ColorMode

Properties

abstract member colorMode: ColorMode option with get, set

Set color support for this Console instance. Setting to true enables coloring while inspecting values. Setting to false disables coloring while inspecting values. Setting to 'auto' makes color support depend on the value of the isTTY property and the value returned by getColorDepth() on the respective stream. This option can not be used, if inspectOptions.colors is set as well.

abstract member groupIndentation: float option with get, set

Set group indentation.

abstract member ignoreErrors: bool option with get, set

Ignore errors when writing to the underlying streams.

abstract member inspectOptions: InspectOptions option with get, set

Specifies options that are passed along to util.inspect().

abstract member stderr: WritableStream option with get, set
abstract member stdout: WritableStream with get, set

Methods

static member Create (stdout: WritableStream, ?stderr: WritableStream, ?ignoreErrors: bool, ?colorMode: ColorMode, ?inspectOptions: InspectOptions, ?groupIndentation: float) : ConsoleConstructorOptions