Type alias SeverityStyle

SeverityStyle: {
    severity: Severity | Filter | number | string;
    style: string | StyleGenerator;
}

The option object to define severity style rules.

Type declaration

  • severity: Severity | Filter | number | string

    The severity level to apply the rule to. Use a filter function in order to realize complex filter scenarios.

  • style: string | StyleGenerator

    Make use of ANSI escape sequences, use entries of Colors, or use a StyleGenerator. Make sure, that the style can be reset by the Colors.DEFAULT code (ANSI escape 0).