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-08 18:26:02 -04:00
2016-08-19 12:22:54 -04:00
2016-09-04 16:43:28 -04:00
2016-09-04 16:43:28 -04:00
2016-08-19 12:22:54 -04:00
2016-06-02 13:28:57 -04:00
2016-06-01 17:17:03 -04:00
2016-08-19 12:22:54 -04:00
2016-09-12 16:41:28 -07:00