NestJS · Senior · Question 47 of 75

How can you share DTOs and validation between a Nest backend and a TypeScript front end?

Explanation

Generated or shared contracts catch breaking API changes at compile time.

Further reading

Problem with a question

NestJS · Senior · question 47

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz