Aurélien
banner
aurelienrichard.com
Aurélien
@aurelienrichard.com
They blocked me.
May 21, 2025 at 1:08 PM
This makes no sense to me. The value passed to the function could be anything, hence the 'unknown' type. But TypeScript isn't happy unless the value is already of type 'Color'. It's trying to get me to write an assertion that will always return true. What am I missing?
March 25, 2025 at 3:10 PM