Next.js Discord

Discord Forum

What does NextJs mean by End to End type safety?

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
does this mean like -

In an api route if i do
res.json({a:"hello"})
ill automatically get the res.data type as
type{a: string;}
in the frontend where i am fetching from this route?

0 Replies