mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 09:40:02 +00:00
add context to react relay
see https://github.com/facebook/relay/blob/master/packages/react-relay/index.js#L13
This commit is contained in:
committed by
GitHub
parent
716ad14d15
commit
555bcfe401
8
types/react-relay/index.d.ts
vendored
8
types/react-relay/index.d.ts
vendored
@@ -17,6 +17,8 @@
|
||||
export {
|
||||
commitLocalUpdate,
|
||||
commitRelayModernMutation as commitMutation,
|
||||
CRelayContext,
|
||||
Environment,
|
||||
fetchRelayModernQuery as fetchQuery,
|
||||
GraphQLTaggedNode,
|
||||
requestRelaySubscription as requestSubscription,
|
||||
@@ -191,3 +193,9 @@ export function createRefetchContainer<P>(
|
||||
fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap,
|
||||
taggedNode: RelayRuntimeTypes.GraphQLTaggedNode
|
||||
): RelayContainer<P>;
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
// Context
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export const ReactRelayContext: Context<CRelayContext<Environment>>;
|
||||
|
||||
Reference in New Issue
Block a user