From 55b80854086ef6a8ba14f22179de52f172dcd69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Sun, 26 Aug 2018 12:26:47 +0200 Subject: [PATCH] [react-relay] Make QueryRenderer typings backwards compatible. --- types/react-relay/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 3db0b23dbc..acce5bf832 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -89,7 +89,7 @@ export const graphql: GraphqlInterface; // ReactRelayQueryRenderer // ~~~~~~~~~~~~~~~~~~~~~ -export interface QueryRendererProps { +export interface QueryRendererProps { cacheConfig?: RelayRuntimeTypes.CacheConfig; environment: RelayRuntimeTypes.Environment; query?: RelayRuntimeTypes.GraphQLTaggedNode | null; @@ -97,7 +97,7 @@ export interface QueryRendererProps { variables: T["variables"]; rerunParamExperimental?: RelayRuntimeTypes.RerunParam; } -export interface ReadyState { +export interface ReadyState { error: Error | undefined | null; props: T | undefined | null; retry?(): void;