3 ms·
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.
by hu3 5y 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 https://colinhacks.com/essays/painless-typesafety
- ricardobeat 5y agoYou could argue that this is actually adding a lot of (nicely knit) seams.
- colinmcd 5y agoI think that's a good characterization!