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']
Jump to solution
5 Replies
cje
cje2y ago
add [number] to the type
arete
areteOP2y ago
idk why this show an error
cje
cje2y ago
because it can be null
Solution
cje
cje2y ago
i guess you could do like NonNullable<RouterOutputs['whatever']>['number']
arete
areteOP2y ago
thankss
Want results from more Discord servers?
Add your server