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:Jump to solution
I managed to find a solution, if anyone is interested: https://tsplay.dev/Nr9KVw
1 Reply
Solution
I managed to find a solution, if anyone is interested: https://tsplay.dev/Nr9KVw