Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The declaration file can be pruned further #1

Open
kran6a opened this issue Dec 22, 2023 · 1 comment
Open

The declaration file can be pruned further #1

kran6a opened this issue Dec 22, 2023 · 1 comment

Comments

@kran6a
Copy link

kran6a commented Dec 22, 2023

The following endpoint fields can be stripped without affecting type inference:

  • transformer
  • _input_out (result of transforming the raw input via the zod schema .transform() method)
  • _output_in (what is returned by the procedure before being transformed by the zod output schema)
  • middleware
  • _ctx_out
  • _meta
  • _config (not sure if it affects type inferency in any way)

Some fields are leaking implementation data if present in the declaration file on top of not being required for inference

@zcesur
Copy link
Member

zcesur commented Dec 22, 2023

Yeah makes sense! Tho we're already removing middleware so there's currently no implementation data present I believe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants