-
I would love to see a compile error type so you could do something like: type ToString<T> = T extends number ?
${T}: error 'ToString requires a number input'; Best we can do now isnever, but that's not easily debuggable. @aweary/1482781972585975817 -
Apparently there is actually a proposal for this, no idea how likely it is to land though. @sebastienlorber/1483385857591681026?s=20
develwoutacause’s Twitter Archive—№ 1,041