Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close gap with flow #520

Merged
merged 1 commit into from
Sep 1, 2016
Merged

Close gap with flow #520

merged 1 commit into from
Sep 1, 2016

Conversation

tmcw
Copy link
Member

@tmcw tmcw commented Sep 1, 2016

This turns #512 into code; our test suite will judge whether we have complete flow support. cc @arv who has been doing lots of 💯 work with flow annotations.

In this branch:

  • mixed: alias to any - this isn't exactly the Flow usage, but we also don't have a JSDoc annotation equivalent
  • object: recursively turns objects into records.
  • FunctionTypeAnnotation

* Adds test support for flow difference
* New support for FunctionTypeAnnotation
* New support for ObjectTypeAnnotation
* New support for MixedTypeAnnotation
@tmcw tmcw merged commit 0a97e0e into master Sep 1, 2016
@tmcw tmcw deleted the flow-100 branch September 1, 2016 20:32

test('flowDoctrine', function (t) {

var types = FLOW_TYPES.filter(function (type) {
return type.match(/\wTypeAnnotation$/);
Copy link
Contributor

@arv arv Sep 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return /\wTypeAnnotation$/).test(type);

would be cleaner here since all we want is a boolean.

@arv
Copy link
Contributor

arv commented Sep 1, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants