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

Invalid flow annotation #38

Closed
llimllib opened this issue Jan 10, 2017 · 1 comment
Closed

Invalid flow annotation #38

llimllib opened this issue Jan 10, 2017 · 1 comment
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@llimllib
Copy link
Contributor

I ran prettier against our large-ish codebase, and aside from several instances of #23, I got one error:

1 pc2 0 git - nikkisix local tmux 2017-01-10 13-06-05

where prettier put a colon in front of the any. Simply removing the colon makes it valid.

@danharper
Copy link
Contributor

just for reference: this is Flow's "optional name" syntax on function types & object indexers

danharper added a commit to danharper/prettier that referenced this issue Jan 10, 2017
danharper added a commit to danharper/prettier that referenced this issue Jan 10, 2017
danharper added a commit to danharper/prettier that referenced this issue Jan 10, 2017
jlongster added a commit that referenced this issue Jan 11, 2017
Print Flow types with no name (fixes #38)
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants