develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 1,036

  1. 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 is never, but that's not easily debuggable. @aweary/1482781972585975817
    1. …in reply to @develwoutacause
      Apparently there is actually a proposal for this, no idea how likely it is to land though. @sebastienlorber/1483385857591681026?s=20