Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Suggested research topic: DTO (Data Transfer Object) Commented Jan 5, 2023 at 12:05
  • 1
    If you're using Typescript (which you are), and you don't want to set up extra codegen or pipelines - the simplest approach is just number one. I don't have enough rep to answer this question. For the people who say, "it won't scale" - they're wrong. I've scaled it in plenty of enterprise applications. The reason why it's good? It's the simplest. If the BE changes you break either way. So if adding more code doesn't prevent anything from breaking, don't add more code. Potentially related: disable the eslint-camelcase rule globally for your typescript codebase, please. Commented May 25, 2023 at 1:00