Optionalprefix: stringOptional prefix string.
Optionalcolor: ColorNameOptional chalk color name.
Optionalunderline: booleanOptional underline flag.
Optionalitalic: booleanOptional italic flag.
Returns the prefix string displayed before the item label, or undefined to use the env default.
Sets the prefix string. Non-empty values are accepted; empty strings are ignored.
Prefix to display before the label.
Returns the chalk color for this style, or undefined to use the terminal default.
Sets the chalk color for this style.
Chalk color name, or undefined to use the terminal default.
Returns the underline flag, or undefined if not explicitly set.
Sets whether the text should be underlined.
Returns the italic flag, or undefined if not explicitly set.
Sets whether the text should be italic.
Serialises the hover style to a plain JSON-compatible object.
Creates a new hover style with optional customization.