• PoopMonster@lemmy.world
      link
      fedilink
      arrow-up
      35
      ·
      11 months ago

      Just as irritating as seeing people use linters only to have a lot of files with @ts-ignore all over the place… Like why even bother?

      • master5o1@lemmy.nz
        link
        fedilink
        arrow-up
        6
        ·
        11 months ago

        oh you’ve got a private variable that I want to use? No worries, (foo as any)[‘secret’].

    • fusio@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      11 months ago

      using any is actually much worse than using TS, because you’re basically telling the compiler “don’t help me here”… at least with JS the IDE is gonna help you… :/

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      11 months ago

      I don’t follow, stamping every function with : any lets you merge the branch and deploy it… trying to properly type everything extends the initial migration time likely to a level where management just says no.