JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.09k stars 59 forks source link

Object optional properties not working #172

Closed srg-kostyrko closed 4 years ago

srg-kostyrko commented 4 years ago

https://hegel.js.org/try#MYewdgzgLgBArhApgJwFwwN40QWwIYCWANutMgWAOYA0MADnhBAO4jIAm6A-GRZTAF8YAXkwwweHInQAiPGACeAOgQoAApXzEloHDMEBuGAHpjMQLwbgGR2AhACggA

JSMonk commented 4 years ago

It's a non-valid example because in type we annotated name and in the object we provide an email. https://hegel.js.org/try#MYewdgzgLgBArhApgJwFwwN40QWwIYCWANutMgWAOYA0MADnhBAO4jIAm6A-GRZTAF8YAXkzZ8xdACI8YAJ4A6BCgAClCUQWgcUwQG4YAekMxAvBuAZHYCEAKCA

srg-kostyrko commented 4 years ago

yeh, sorry - this is example from docs, will update it