Skip to content

TS: Color should accept text of any type #95

@tukusejssirs

Description

@tukusejssirs

I tried to colour a message like red(true), but TS warned me that Color needs to be string | number (index.d.ts (L2)).

I think that it should be of any type, just like console.log() or Logger from @nestjs/common can accept them.

I haven’t looked much into your code, but if you really need string | number, you could use JSON.stringify() on other types, however, I think it could be done without it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions