AnsiIcontype
{
toString(): string;
}A lazily-coloured icon that re-evaluates its ANSI colouring against the live NO_COLOR environment variable every time it is converted to a string.
- Used directly inside template literals (
${ANSI_SUCCESS}), where JavaScript invokestoString()automatically, so the icon is coloured at use-time, not at module-load time.