vscode-language-babel
vscode-language-babel copied to clipboard
Flow function as generic type
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>