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
import*asgeneratedClientSrcfrom'./generated_client2';constapiclient=newgeneratedClientSrc.default('')constr=apiclient.hello.get("aa");// type is: Promise<void> but expected: Promise<{ message: string }>
is type inference on the roadmap? (or is it currently impossible?)
also, is there any way to express "branded-types", like zod's z.number.branded('user_id') ?
The text was updated successfully, but these errors were encountered:
devtempmac
changed the title
feature request: type inference on Response
feature request: type inference on Response type codegen
Apr 24, 2025
hello!
I just tried out encore hello-world (restapi) + encore's client code gen (typescript)
when I removed response type from the source, the codegen gives me 'void' response type:
is type inference on the roadmap? (or is it currently impossible?)
also, is there any way to express "branded-types", like zod's
z.number.branded('user_id')
?The text was updated successfully, but these errors were encountered: