DEV Community

Discussion on: Keeping TypeScript Type Guards safe and up to date (a simpler solution)

Collapse
 
sferadev profile image
Alexis Rico

I really like the approach, however it doesn't alert you if you add new optional properties.

Suggestion to make it more robust: typescriptlang.org/play?#code/PTAE...

Collapse
 
noriste profile image
Stefano Magni

I just updated the article pointing to your suggeste change, thank you!! 😊