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
This commit is contained in:
Dan Harper
2016-09-12 13:27:49 +01:00
committed by Henry Zhu
parent 5249b9d809
commit 41f2bbc104
7 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1 @@
const x = (foo /*:: ?*/) => {};

View File

@@ -0,0 +1 @@
const x = (foo: string) => {};

View File

@@ -0,0 +1 @@
const x = (foo /*: string*/) => {};