You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I tried to colour a message like
red(true)
, but TS warned me thatColor
needs to bestring | number
(index.d.ts
(L2)).I think that it should be of
any
type, just likeconsole.log()
orLogger
from@nestjs/common
can accept them.I haven’t looked much into your code, but if you really need
string | number
, you could useJSON.stringify()
on other types, however, I think it could be done without it.The text was updated successfully, but these errors were encountered: