• AlecSadler@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      3 months ago

      Typo’d property names when accessing was the biggest one. Assuming a property was one data type instead of another and not casting or handling it appropriately. Accidentally calling something like it’s a method when it isn’t.

      I ran a bunch of plugins on my end to help with some of that, but many of the older or stubborn devs refused and would refuse anything but, like, vim with no add-ons.

      • bleistift2@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        6
        ·
        3 months ago

        I believe you don’t have to actually use (meaning “compile from”) typescript to profit from it. If you maul the compiler options hard enough, you might get it to analyze JavaScript and provide type checking.

        • AlecSadler@sh.itjust.works
          link
          fedilink
          arrow-up
          6
          ·
          3 months ago

          That’s what I did locally.

          But a lot of this JavaScript wasn’t even transpiled/compiled for prod, just uploaded to a bucket and referenced directly. It was painful.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 months ago

        Oof. I guess you can use typescript to make up for lack of IDE but it sounds like you had bigger problems anyway.