Похожие чаты

I expect an object of user defined type T in

my nextjs api routes

So is there any method to check if all the field of an object are defined instead of checking each key of that object is defined

I mean I only need to accept data which has all variables in the object defined at the server side

In other languages like rust the client has to send the exact data defined at the server so is there any lib or something to do like that ?

1 ответов

31 просмотр

zod, joi, ...

Похожие вопросы

Обсуждают сегодня

Карта сайта