You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create any endpoint with body validation using a t.Transform:
// Serverconstapp=newElysia().post("/",({ body })=>{// Here value has the type `string`, which is GOODconsole.log(body);},{body: t.Object({value: numToStr,}),},);// Clienttreaty<App>("_url_").index.post({value: 2023});// Here the value has the type `string`, which is BAD
What is the expected behavior?
The Treaty should asks for a number.
What do you see instead?
The Treaty asks for a string.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Elysia.JS is running?
1.0.22
What platform is your computer?
No response
What steps can reproduce the bug?
Create any endpoint with body validation using a t.Transform:
What is the expected behavior?
The Treaty should asks for a number.
What do you see instead?
The Treaty asks for a
string
.Additional information
No response
The text was updated successfully, but these errors were encountered: