Open penx opened 4 years ago
Describe the issue Supplying a function as a Flow type argument to a generic callable breaks syntax highlighting.
Screenshot of Current Behavior
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);
Running into this here as well:
Same as above, the culprit is:
React.useState<() => React.ReactNode>
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](https://user-images.githubusercontent.com/1027024/77330627-88803380-6d17-11ea-821a-65d639b9df66.png)
Sample Code to Reproduce