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

how this project relate/refer to tRPC #43

Open
gustawdaniel opened this issue Mar 30, 2023 · 1 comment
Open

how this project relate/refer to tRPC #43

gustawdaniel opened this issue Mar 30, 2023 · 1 comment

Comments

@gustawdaniel
Copy link

https://trpc.io/

@k8w
Copy link
Owner

k8w commented Mar 31, 2023

TSRPC and tRPC both solve the problem of runtime type safety, but they are two completely different frameworks with different approaches to solving the problem.

  • tRPC: Uses a separately designed type system (implemented through proprietary syntax and TS type inference)
  • TSRPC: Does not have a new type system, but instead provides runtime type checking based on the TypeScript specification.

In addition, TSRPC also supports binary serialization of TypeScript types (like Protobuf, but without the need to write additional proto files, with all type systems anchored on top of the TypeScript standard).

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