• hblaub@programming.dev
    link
    fedilink
    arrow-up
    54
    arrow-down
    1
    ·
    1 year ago

    TypeScript of course. The compiler often times catches mistakes in variable names, API methods, whatever. So it saves time by not having to run the whole application all the time. Also the input help is much better, when the editor knows sth is a string or a number, for example.

    • o_d [he/him]@lemmygrad.ml
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      1 year ago

      Oh yeah. Or when it’s a union of multiple strings or an enum and you get that sweet popup of all your options. So good 🥹

      • fidodo@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        And being able to use more complex object types like discriminated unions without having to constantly look up what’s in them!