From d749fe864166c053fa031120c3cce9d799ecbac3 Mon Sep 17 00:00:00 2001 From: CSNWEB Date: Wed, 11 Dec 2019 10:37:24 +0100 Subject: [PATCH] Fix - Make DataProxyReadQueryOptions generic DataProxyReadQueryOptions is used with a generic type in other places (i.e. readQuery in line 1023), so flow threw an error. --- .../flow_v0.58.x-v0.103.x/react-hooks_v3.x.x.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/npm/@apollo/react-hooks_v3.x.x/flow_v0.58.x-v0.103.x/react-hooks_v3.x.x.js b/definitions/npm/@apollo/react-hooks_v3.x.x/flow_v0.58.x-v0.103.x/react-hooks_v3.x.x.js index e58ec6f4fb..13322282b7 100644 --- a/definitions/npm/@apollo/react-hooks_v3.x.x/flow_v0.58.x-v0.103.x/react-hooks_v3.x.x.js +++ b/definitions/npm/@apollo/react-hooks_v3.x.x/flow_v0.58.x-v0.103.x/react-hooks_v3.x.x.js @@ -982,9 +982,9 @@ declare module '@apollo/react-hooks' { > = DataProxyWriteFragmentOptions; declare type CacheWriteDataOptions = DataProxyWriteDataOptions; - declare interface DataProxyReadQueryOptions { + declare interface DataProxyReadQueryOptions { query: DocumentNode; - variables?: any; + variables?: TVariables; } declare interface DataProxyReadFragmentOptions {