Protected
constructorReadonly
lineThe Unicode code point sequence used to separate lines of text. Defaults to the runtime operating system's line separator.
Readonly
precisionReturns the numeric precision output producers should use when formatting numbers.
Returns a copy of these settings with the given pretty
flag.
Returns a copy of these settings with the given styled
flag.
Protected
canProtected
copyWrites a developer readable, debug-formatted string representation of this
object to output
.
the continuation of the output
.
[[OutputException]] if the output
exits the cont state before
the full debug string has been written.
Returns a copy of these settings with the given lineSeparator
.
Returns a copy of these settings with the given numeric precision
.
Static
createReturns OutputSettings
configured with the given lineSeparator
, pretty
printing enabled if isPretty
is true
, styling enabled if isStyled
is true
, and with the given numeric precision
.
Optional
lineSeparator: stringOptional
pretty: booleanOptional
styled: booleanOptional
precision: numberStatic
fromConverts a settings init
object to an instance of OutputSettings
.
Static
fromConverts a loosely typed settings value
to an instance of OutputSettings
.
Static
prettyReturns OutputSettings
configured with the system line separator,
pretty printing enabled, and styling disabled.
Static
prettyReturns OutputSettings
configured with the system line separator,
pretty printing enabled, and styling enabled.
Static
standardReturns OutputSettings
configured with the system line separator,
pretty printing disabled, and styling disabled.
Static
styledReturns OutputSettings
configured with the system line separator,
pretty printing disabled, and styling enabled.
Generated using TypeDoc
[[Output]] production parameters.
OutputSettings
provide contextual configuration parameters to output producers, such as [[Writer Writers]]. Uses include enabling pretty printing and styling generated output. Subclasses can provide additional parameters understood by specialized output producers.