Problem 06-unions, backdoor
Shemrock3267 opened this issue · 1 comments
Shemrock3267 commented
Hey @mattpocock .
Thanks for your effort and time spent on this course.
I just want to point out that you can fool typechecker in this exercise with simply typing this, and it will pass the test.
role: string[]
instead of role: 'admin' | 'user' | 'super-admin'
mattpocock commented
Thanks!
I'm not too interested on making every exercise exactly bulletproof. As I've said in other issues, the exercises will be accompanied by videos which make the intent of each problem/solution clear.