Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Flow] Function predicate declaration #103
The accepted syntax for function declarations is extended to allow
These changes are with regards to this commit in the Flow repo.
Current coverage is 97.29% (diff: 100%)
@@ master #103 diff @@ ========================================== Files 21 21 Lines 4001 4035 +34 Methods 485 491 +6 Messages 0 0 Branches 1179 1180 +1 ========================================== + Hits 3892 3926 +34 Misses 49 49 Partials 60 60
Thank you for your first PR to babylon.
In order to get this working throughout the complete chain of babel, all the new node types (I think it is only
I would wait with the merge till we have a PR in babel and the new flow version is released.
referenced this pull request
Sep 4, 2016
Sorry for taking so long to get back to this.
AFAIK, there is still some function predicate code that hasn't been merged to Flow's master. Most of these changed involve the type checker, but there is also some parser work under way. For example I believe the notation of predicate refinement will be updated to something more elegant. Also, there has not been an official announcement yet.
However, you are right that some support for function predicates (including