DEV Community

Discussion on: Custom Type Guards in Typescript

 
mainawycliffe profile image
Maina Wycliffe

Yeah, that is true, it's upto you to do an exhaustive check on whether an object is of that type before returning true.

Thread Thread
 
lioness100 profile image
Lioness100

Yeah, I understood the concept, I was just confused by the difference of asserts x is y vs x is y