tRPCttRPC
Powered by
lithdewL
tRPC•3y ago
lithdew

Accepting a DecoratedProcedure with inputs and outputs that extend some given types

Is there any way to accept a DecoratedProcedure that extends { mutate: Resolver<TProcedure> } where TProcedure is guaranteed to have its inputs be something that extend the object { nextFollowerId: string }, and the outputs are a string?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Validating inputs and outputs only via typescript
DangerZoneDDangerZone / ❓-help
2y ago
Types with enabled: false
ballingtBballingt / ❓-help
3y ago
Is there a typescript performance gain if I infer my router outputs once, and then export them?
NotZeldaNNotZelda / ❓-help
10mo ago
Correct types and payload for the applyWSSHandler with createContext
renardeinsRrenardeins / ❓-help
2y ago