Hacker News new | ask | show | jobs
by hu3 1508 days ago
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

1 comments

You could argue that this is actually adding a lot of (nicely knit) seams.
I think that's a good characterization!