Skip to content

The declaration file can be pruned further #1

@kran6a

Description

@kran6a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions