Henry Zhu
123dce5fcd
Hardcode to double quotes, indent to 2 spaces ( #5824 )
2017-06-05 22:14:37 -05:00
James Lal
6928695735
Flow comments import export ( #5675 )
...
* Add failing test for `export type .. from ...; `
* Add support for flow comment : `export ... from '...'`
2017-05-20 09:10:39 -04:00
Chau Nguyen
d710e6dd5b
[7.0] Drop flowUsesCommas option from babel-generator ( #5123 )
2017-01-19 22:24:13 -05:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -05:00
Dan Harper
d90aaf2c76
Print Flow optional & type annotations in function params with defaults ( #4872 )
...
Fixes #4863
2016-12-16 15:31:05 -05:00
Dan Harper
9e17aaf043
retain return types on ObjectMethods in transform-es2015-shorthand-properties ( #4670 )
2016-10-04 21:32:43 -04:00
Dan Harper
7f772e94ce
retain method return types on transform-es2015-classes ( closes #4665 ) ( #4668 )
2016-10-04 18:22:29 -04:00
Dan Harper
0e02a18216
fix regression in transform-flow-comments for class properties ( #4623 )
2016-10-01 00:56:09 -04:00
Dan Harper
8709899b42
fix flow-strip-types/flow-comments removing entire ClassProperty ( #4587 )
2016-09-28 18:25:33 +02:00
Dan Harper
41f2bbc104
Flow: Fix generating arrow functions with param ( #4504 )
...
* transform-flow-comments, single arrow param support #4503
* further tests for printing single arrow func param flow code
* cleanup
2016-09-12 08:27:49 -04:00
Sam Goldman
a38a58bad8
Add support for Flow def-site variance syntax
...
This syntax allows you to specify whether a type variable can appear in
a covariant or contravariant position, and is super useful for, say,
Promise.
Right now this is hacked in jankily, but in the next major release we
should stop using Identifier nodes for type parameters.
2016-03-06 14:44:09 -08:00
Jeff Morrison
e6951e99f0
Add support for leading pipes in Flow type alias RHS syntax
2016-02-05 13:23:55 -05:00
Sam Goldman
17d19a0056
Add export interface Flow syntax support
...
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:
```javascript
interface I_ { ... }
export type I = I_;
```
```javascript
export interface I { ... }
```
See facebook/flow#1145
2016-01-05 15:57:45 -08:00
Sam Goldman
26c97c4069
Add support for "declare interface" Flow syntax
...
This has been a feature in Flow for a long time (couldn't easily find a
specific commit adding this). Interfaces are basically undocumented, though, so
it's easy to see how this was missed.
2016-01-04 11:50:12 -08:00
Sam Goldman
e764346d5f
Add support for "declare type" Flow syntax
...
See facebook/flow#1105
2016-01-04 11:42:43 -08:00
Sam Goldman
ef60fed7d6
Add test ensuring declare statements are transformed to comments
2015-12-23 16:49:18 -05:00
Henry Zhu
33ce926c7f
rename flow-comments plugin
2015-12-15 20:14:47 -05:00