Files
test-repo/tests/format/flow/range/declare-export-declaration.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
456 B
JavaScript
Raw Normal View History

2021-03-10 15:12:27 +02:00
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"