Skip to content

Commit

Permalink
Handle arrow function return type declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
thom committed May 29, 2018
1 parent 7d666e2 commit bd40db1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extensions/flow_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
---
!merge
variables: !merge
arrow_func_lookahead: |-
(?x)(?:
\s*(async\s*)?
(?:
{{identifier}}
|\( (?: [^()]|\([^()]*\) )* \)
)
(?:
\s*:
\s*{{identifier}}
)?
\s*=>
)
class_element_name: |-
(?x)\+?(?:
{{property_name}}
Expand Down

0 comments on commit bd40db1

Please sign in to comment.