DEV Community

Discussion on: Custom Type Guards in Typescript

 
mainawycliffe profile image
Maina Wycliffe

Yeah, that's true. I probably should add that you need to do an exhaustive check on the type before returning it.