@types/relay-runtime
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -20,4 +20,2 @@ // Type definitions for relay-runtime 1.3 | ||
export type RelayQueryRequest = any; | ||
export type ConcreteFragment = any; | ||
export type ConcreteBatch = any; | ||
export type ConcreteFragmentDefinition = object; | ||
@@ -37,2 +35,19 @@ export type ConcreteOperationDefinition = object; | ||
// ~~~~~~~~~~~~~~~~~~~~~ | ||
// Used in artifacts | ||
// emitted by | ||
// relay-compiler | ||
// ~~~~~~~~~~~~~~~~~~~~~ | ||
// File: https://github.com/facebook/relay/blob/fe0e70f10bbcba1fff89911313ea69f24569464b/packages/relay-runtime/util/RelayConcreteNode.js | ||
export type ConcreteFragment = any; | ||
export type ConcreteRequest = any; | ||
export type ConcreteBatchRequest = any; | ||
export type RequestNode = ConcreteRequest | ConcreteBatchRequest; | ||
// Using `enum` here to create a distinct type and `const` to ensure it doesn’t leave any generated code. | ||
// tslint:disable-next-line:no-const-enum | ||
export const enum FragmentReference {} | ||
// ~~~~~~~~~~~~~~~~~~~~~ | ||
// RelayQL | ||
@@ -49,5 +64,5 @@ // ~~~~~~~~~~~~~~~~~~~~~ | ||
export type GraphQLTaggedNode = | ||
| (() => ConcreteFragment | ConcreteBatch) | ||
| (() => ConcreteFragment | RequestNode) | ||
| { | ||
modern(): ConcreteFragment | ConcreteBatch; | ||
modern(): ConcreteFragment | RequestNode; | ||
classic(relayQL: RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; | ||
@@ -91,3 +106,3 @@ }; | ||
export function FetchFunction( | ||
operation: ConcreteBatch, | ||
operation: RequestNode, | ||
variables: Variables, | ||
@@ -106,3 +121,3 @@ cacheConfig: CacheConfig, | ||
export type SubscribeFunction = ( | ||
operation: ConcreteBatch, | ||
operation: RequestNode, | ||
variables: Variables, | ||
@@ -109,0 +124,0 @@ cacheConfig: CacheConfig, |
{ | ||
"name": "@types/relay-runtime", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "TypeScript definitions for relay-runtime", | ||
@@ -25,4 +25,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "f4318da3375d4d103af6dbb60c0dc31c32ec215d0e5f52af3d794922d0da0bc3", | ||
"typesPublisherContentHash": "110e0e33899ebd2f26a8693b1cd20dcb0a34afdb2100bf8397ff35a301c50625", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 15 Nov 2017 17:31:17 GMT | ||
* Last updated: Tue, 06 Feb 2018 21:12:13 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
978
39310