Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OutputSettings

Output production parameters. OutputSettings provide contextual configuration parameters to output producers, such as Writers. Uses include enabling pretty printing and styling generated output. Subclasses can provide additional parameters understood by specialized output producers.

Hierarchy

  • OutputSettings

Implements

Index

Constructors

Protected constructor

  • new OutputSettings(lineSeparator: string, isPretty: boolean, isStyled: boolean): OutputSettings

Methods

Protected canEqual

  • canEqual(that: unknown): boolean

Protected copy

  • copy(lineSeparator: string | null, isPretty: boolean, isStyled: boolean): OutputSettings

debug

equals

  • equals(that: unknown): boolean

hashCode

  • hashCode(): number

isPretty

isStyled

lineSeparator

  • lineSeparator(): string
  • lineSeparator(lineSeparator: string | null): OutputSettings

toString

  • toString(): string

Static create

  • create(lineSeparator?: string | null, isPretty?: undefined | false | true, isStyled?: undefined | false | true): OutputSettings
  • Returns OutputSettings configured with the given lineSeparator, pretty rinting enabled if isPretty is true, and styling enabled if isStyled is true.

    Parameters

    • Optional lineSeparator: string | null
    • Optional isPretty: undefined | false | true
    • Optional isStyled: undefined | false | true

    Returns OutputSettings

Static fromAny

Static pretty

Static prettyStyled

Static standard

Static styled