Erik Arvidsson 2eff668edf Infer type for variable declarations and class properties (#540)
This infers the type from Flow type annotations for variable
declarations and class properties.

This also moves the logic for setting the `type` for typedefs
to the same type inferrer.

Also infer the type for statements like:

```js
const x = 42;
```

same as:

```js
const x: number = 42;
```
2016-09-13 12:40:24 -07:00
..
2016-09-12 16:41:28 -07:00
2015-12-11 17:04:42 -05:00
2016-08-24 10:58:15 -04:00
2016-08-18 08:01:12 -04:00
2016-08-24 10:58:15 -04:00
2015-11-24 11:21:11 -05:00