Search
Setup for Free
TTC
Theo's Typesafe Cult
•
3y ago
arete
trpc routerOutputs
is there a way to get medicalRecord as a single item
? thanks
Solution
i guess you could do like
NonNullable<RouterOutputs['whatever']>['number']
NonNullable<RouterOutputs['whatever']>['number']
Jump to solution
Theo's Typesafe Cult
Join
26,231
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
NonNullable<RouterOutputs['whatever']>['number']
NonNullable<RouterOutputs['whatever']>['number']
C
cje
•
4/14/23, 5:33 PM
add
[number]
[number]
to the type
A
arete
OP
•
4/14/23, 6:44 PM
idk why this show an error
C
cje
•
4/14/23, 7:19 PM
because it can be null
Solution
C
cje
•
4/14/23, 7:20 PM
i guess you could do like
NonNullable<RouterOutputs['whatever']>['number']
NonNullable<RouterOutputs['whatever']>['number']
A
arete
OP
•
4/14/23, 7:22 PM
thankss
[number]
[number]
Similar Threads
can't import routeroutputs
TTC
Theo's Typesafe Cult / questions
3y ago
Routeroutputs and type inference from database
TTC
Theo's Typesafe Cult / questions
3y ago
Non-primitive fields not showing on variables of type from RouterOutputs.
TTC
Theo's Typesafe Cult / questions
3y ago
trpc
TTC
Theo's Typesafe Cult / questions
3y ago