Typescript Inference for getServerSideProps-like function

So I'm having some issues with type inference on typescript that I cannot wrap my head around. It's something like this: https://tsplay.dev/WzxAQN. How do I make it infer the correct type without manually specifying the return type?
Solution:
I managed to find a solution, if anyone is interested: https://tsplay.dev/Nr9KVw
Jump to solution
1 Reply
Solution
n1xx1
n1xx12y ago
I managed to find a solution, if anyone is interested: https://tsplay.dev/Nr9KVw
Want results from more Discord servers?
Add your server