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 }>;