Coder Social home page Coder Social logo

algora-io / xtrpc Goto Github PK

View Code? Open in Web Editor NEW
72.0 2.0 4.0 2.61 MB

Export your tRPC router to massively improve language server performance and/or let your users consume your API from a typed SDK

License: MIT License

JavaScript 33.97% TypeScript 66.03%
trpc trpc-api trpc-client

xtrpc's People

Contributors

zcesur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kran6a

xtrpc's Issues

The declaration file can be pruned further

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

A descendant of kind ObjectLiteralExpression was expected to be found.

Tried using this project in our tRPC project and I'm unsure what's going on here.

InvalidOperationError: A descendant of kind ObjectLiteralExpression was expected to be found.

/Users/dimiguel/dev/company/company/packages/server/src/index.ts:95:13
> 95 |       await setupAPI(server, router)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.