• GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    8 months ago

    This doesn’t actually read as serious TypeScript, moreso as someone trying to showcase unhinged code.

    I’d be happy to be proven wrong with a link to the source code so that I can look the beast in the eye.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      8 months ago

      Take a look at some typescript libraries and frameworks and you will see stuff like this. Completely unreadable mess.

      • ris@feddit.de
        link
        fedilink
        arrow-up
        16
        ·
        8 months ago

        I have seen image recognition or text RPGs with type script types, but const ok:true = true as Grid< 4, 9, 2 Wtf

      • Meltrax@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        8 months ago

        Styled Components’ type system is one of the most impressive and most fucked up things I’ve ever had to dive into.