Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah there's a lot you could do with property setter overrides in conditional types, but the tricky magic trick is somehow getting Typescript to do it by default. I've got a feeling that `object` and `{}` are just too low-level in Typescript's type system today to do those sorts of things. The `Object` in lib.d.ts is mostly for adding new prototype methods, not as much changing underlying property behavior.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: