total-typescript/typescript-generics-workshop

Exo 20.7 working around partial inference problem

stephane777 opened this issue · 1 comments

Hi,

I just spent 1h trying to solve working around partial inference problem and I decided to watch the solution.
I had the right approach to solve it however Matt didn't experience the same error I had in my local IDE.
The 2nd type argument of makeSelectors have a default value {} in the repo which the code in Matt video doesn't.
Once I removed it from my code all the test pass.

thanks!

Hi 👋

Thanks for raising this. I noticed the same thing.

I've raised a pull request to address it 🙂