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:
@@ -0,0 +1 @@
|
||||
const x = (foo?) => {}
|
||||
@@ -0,0 +1 @@
|
||||
const x = (foo /*:: ?*/) => {};
|
||||
@@ -0,0 +1 @@
|
||||
const x = (foo: string) => {};
|
||||
@@ -0,0 +1 @@
|
||||
const x = (foo /*: string*/) => {};
|
||||
Reference in New Issue
Block a user