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-08-19 12:22:54 -04:00
2016-08-18 08:01:12 -04:00
2016-08-24 10:58:15 -04:00
2016-03-14 18:26:07 -07:00
2016-09-04 16:43:28 -04:00
2016-03-09 19:50:00 +03:00
2016-04-29 18:09:52 -04:00
2016-03-13 12:43:28 -07:00
2015-10-03 16:57:37 -04:00
2016-04-29 18:09:52 -04:00