[suggestion] action without schema and typescript support. #192
Closed
fitimbytyqi
started this conversation in
Ideas
Replies: 1 comment 10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This library is great 🔥, however, there are cases where people use NextJS as BFF including myself. In the majority of the cases we don't validate the inputs on the server because we already do it on the client & in the external server.
Is there any possibility to add types to the parsedInput (this will be whatever I've put in schema) or maybe have another property called input whose type we can modify ?
Most of our schemas use localization, the docs suggest to create a getSchema server action to pass the translations to that schema but on large applications it will be too messy to create a getSchema for each server action.
E.x Trpc lets us modify .schema's type without passing a zod schema by doing .schema(input => input as WhateverType).
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions