Hacker News new | past | comments | ask | show | jobs | submit login

Undeclared parameters are implicitly "any". You don't need nearly this much code to break. This is equivalently broken:

var x: any = {}; x.foo();

Here's the typesafe way: http://tryflow.org/#b5f826e03045f64084cfc74398270e85




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: