• humorlessrepost@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    Genuine question: is it really a superset if it’s not still valid javascript? Isn’t it more of an abstraction layer on top of javascript?

    • CookieOfFortune@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      In practice people don’t use Typescript as a superset since they have stricter compiler settings, which would make valid JavaScript fail to compile.