Type alias RefStyle

RefStyle: {
    ref: string | RegExp | Filter;
    style: string | StyleGenerator;
}

The option object to define ref style rules.

Type declaration

  • ref: string | RegExp | Filter

    The ref to apply the rule to. If string is used, the value may contain at most one asterisk (*) as a pattern placeholder. 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).