From cda26c85c2ebee75bdd2eae53cc391e1f5028d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Tue, 6 Feb 2018 15:52:51 +0100 Subject: [PATCH] [relay] Expose `componentRef` prop of containers. --- types/react-relay/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index fb1cca3c29..34f3a500ae 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -92,7 +92,7 @@ export class QueryRenderer extends ReactRelayQueryRenderer {} export function createFragmentContainer( Component: React.ComponentType, fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap -): React.ComponentType>; +): React.ComponentType & { componentRef?: any }>; // ~~~~~~~~~~~~~~~~~~~~~ // createPaginationContainer @@ -140,7 +140,7 @@ export function createPaginationContainer( Component: React.ComponentType, fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap, connectionConfig: ConnectionConfig -): React.ComponentType>; +): React.ComponentType & { componentRef?: any }>; // ~~~~~~~~~~~~~~~~~~~~~ // createRefetchContainer @@ -163,4 +163,4 @@ export function createRefetchContainer( Component: React.ComponentType, fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap, taggedNode: RelayRuntimeTypes.GraphQLTaggedNode -): React.ComponentType>; +): React.ComponentType & { componentRef?: any }>;