@types/react-relay
Advanced tools
Comparing version 7.0.12 to 7.0.13
@@ -10,2 +10,4 @@ export { graphql } from 'relay-runtime'; | ||
export { loadQuery } from './relay-experimental/loadQuery'; | ||
export { preloadQuery } from './relay-experimental/preloadQuery'; | ||
@@ -12,0 +14,0 @@ export { prepareEntryPoint } from './relay-experimental/prepareEntryPoint'; |
@@ -36,15 +36,49 @@ import { | ||
export interface PreloadedQuery< | ||
export type PreloadedQuery< | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions = EnvironmentProviderOptions | ||
> { | ||
readonly environment: IEnvironment; | ||
readonly environmentProviderOptions: TEnvironmentProviderOptions | null | undefined; | ||
readonly fetchKey: string | number | null | undefined; | ||
readonly fetchPolicy: PreloadFetchPolicy; | ||
readonly name: string; | ||
readonly source: Observable<GraphQLResponse> | null | undefined; | ||
readonly variables: TQuery['variables']; | ||
} | ||
> = | ||
| PreloadedQueryInner_DEPRECATED<TQuery, TEnvironmentProviderOptions> | ||
| PreloadedQueryInner<TQuery, TEnvironmentProviderOptions>; | ||
export type PreloadedQueryInner_DEPRECATED< | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions = EnvironmentProviderOptions | ||
> = Readonly<{ | ||
kind: 'PreloadedQuery_DEPRECATED', | ||
environment: IEnvironment; | ||
environmentProviderOptions?: TEnvironmentProviderOptions | null; | ||
fetchKey?: string | number | null; | ||
fetchPolicy: PreloadFetchPolicy; | ||
networkCacheConfig?: CacheConfig | null, | ||
id?: string | null | ||
name: string; | ||
source?: Observable<GraphQLResponse> | null; | ||
variables: TQuery['variables']; | ||
status: PreloadQueryStatus | ||
}>; | ||
export type PreloadedQueryInner< | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions = EnvironmentProviderOptions | ||
> = Readonly<{ | ||
dispose: () => void; | ||
environment: IEnvironment; | ||
environmentProviderOptions?: TEnvironmentProviderOptions | null; | ||
fetchPolicy: PreloadFetchPolicy; | ||
id?: string | null; | ||
isDisposed: boolean; | ||
name: string; | ||
networkCacheConfig?: CacheConfig | null; | ||
source?: Observable<GraphQLResponse> | null; | ||
kind: 'PreloadedQuery'; | ||
variables: TQuery['variables'] | ||
}>; | ||
export type PreloadQueryStatus = Readonly<{ | ||
cacheConfig?: CacheConfig | null, | ||
source: 'cache' | 'network', | ||
fetchTime?: number | null, | ||
}>; | ||
/** | ||
@@ -51,0 +85,0 @@ * The Interface of the EntryPoints .entrypoint files |
{ | ||
"name": "@types/react-relay", | ||
"version": "7.0.12", | ||
"version": "7.0.13", | ||
"description": "TypeScript definitions for react-relay", | ||
@@ -80,4 +80,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b5b4c440966f82b3e208e7d41806206d2ddc6db95e8373d2a9ff1136db8e53b5", | ||
"typesPublisherContentHash": "fccbdcb562f6349224c89bdbaf5d53f2a2506864050c58969b7cb58823540048", | ||
"typeScriptVersion": "3.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 29 Sep 2020 10:37:56 GMT | ||
* Last updated: Thu, 08 Oct 2020 12:17:14 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/relay-runtime](https://npmjs.com/package/@types/relay-runtime) | ||
@@ -14,0 +14,0 @@ * Global values: none |
44221
28
999