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

Flow function as generic type #65

Open
penx opened this issue Mar 23, 2020 · 1 comment
Open

Flow function as generic type #65

penx opened this issue Mar 23, 2020 · 1 comment

Comments

@penx
Copy link

penx commented Mar 23, 2020

Describe the issue
Supplying a function as a Flow type argument to a generic callable breaks syntax highlighting.

Screenshot of Current Behavior
Screenshot 2020-03-23 at 15 04 00

Sample Code to Reproduce

// @flow
import { createContext } from 'react';

export const Working = createContext<number>(1);
export const Breaks = createContext<() => void>(() => undefined);
export const Broken = createContext<number>(1);
@d3dc
Copy link

d3dc commented Nov 1, 2020

Running into this here as well:

Screen Shot 2020-11-01 at 9 42 14 AM

Same as above, the culprit is:

 React.useState<() => React.ReactNode>

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

No branches or pull requests

2 participants