I keep seeing posts of some drama with typescript. What happened?

  • FooBarrington@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Well yes, if you don’t take care of properly typing external data, you won’t have it properly recognised. But that’s the same in any language that e.g. consumes external JSON data. Use the tools that Typescript gives you (like type guards) or the tools the community has built (like io-ts).