Files
test-repo/tests/flow/range/declare-export-declaration.js
T
Georgii Dolzhykov 4ece300581 Fix Flow range formatting (#10505)
* Fix Flow range formatting

* Add changelog
2021-03-10 15:12:27 +02:00

9 lines
456 B
JavaScript

declare export function graphql<Props, Variables, Component: React$ComponentType<Props>>
(query: GQLDocument, config?: Config<Props, QueryConfigOptions<Variables>>):
(Component: Component) => React$ComponentType<$Diff<React$ElementConfig<Component>, {
data: Object|<<<PRETTIER_RANGE_START>>>void<<<PRETTIER_RANGE_END>>>,
mutate: Function|void
}>>
declare type FetchPolicy= "cache-first" | "cache-and-network" | "network-only" | "cache-only"