Hacker News new | past | comments | ask | show | jobs | submit login

You kinda can share function signatures with TypeScript's import type.

And that's what tRPC does but adds some generics in the middle to make things seamless.

Explanation here: https://colinhacks.com/essays/painless-typesafety




You could argue that this is actually adding a lot of (nicely knit) seams.


I think that's a good characterization!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: