What is the best practice about DTO, schema or interface for typing in typescript

后端 未结 0 541
囚心锁ツ
囚心锁ツ 2020-12-16 20:24

Currently in my typescript code (nestjs) I use the DTO in my controller to validate the data that goes into my API, the schemas are used as type in the rest of the files and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题