Validating inputs and outputs only via typescript
Hey everyone,
I am trying to create an appRouter with
ts-morph
but I am having trouble with passing the zod
schema/object instance to it (since I need to pass the original implementation, not the instance).
I was thinking about a way to work around this and was wondering if I could somehow just pass the zod typescript type in the inputs and outputs - keep in mind that my usecase only calls for the type definitions to work, not the actual implementation.
here you can see I am trying to pass on;y the RandomType
, but ofc I don't really know what I am doing 😄0 Replies