@types/react-relay
Advanced tools
Comparing version
export { | ||
VariablesOf, | ||
JSResourceReference, | ||
PreloadFetchPolicy, | ||
PreloadOptions, | ||
LoadQueryOptions, | ||
PreloadableConcreteRequest, | ||
EnvironmentProviderOptions, | ||
PreloadedQuery, | ||
PreloadQueryStatus, | ||
PreloadProps, | ||
EntryPointProps, | ||
EntryPointComponent, | ||
PreloadedEntryPoint, | ||
ThinQueryParams, | ||
ThinNestedEntryPointParams, | ||
EntryPoint, | ||
IEnvironmentProvider | ||
VariablesOf, | ||
JSResourceReference, | ||
PreloadFetchPolicy, | ||
PreloadOptions, | ||
LoadQueryOptions, | ||
PreloadableConcreteRequest, | ||
EnvironmentProviderOptions, | ||
PreloadedQuery, | ||
PreloadQueryStatus, | ||
PreloadProps, | ||
EntryPointProps, | ||
EntryPointComponent, | ||
PreloadedEntryPoint, | ||
ThinQueryParams, | ||
ThinNestedEntryPointParams, | ||
EntryPoint, | ||
IEnvironmentProvider, | ||
} from './relay-hooks/EntryPointTypes'; | ||
export { | ||
MatchContainerProps, | ||
MatchPointer, | ||
} from './relay-hooks/MatchContainer'; | ||
export { MatchContainerProps, MatchPointer } from './relay-hooks/MatchContainer'; | ||
export { ProfilerContextType } from './relay-hooks/ProfilerContext'; | ||
@@ -29,23 +26,19 @@ export { Direction, LoadMoreFn } from './relay-hooks/useLoadMoreFunction'; | ||
export { UseQueryLoaderLoadQueryOptions } from './relay-hooks/useQueryLoader'; | ||
export { RefetchFn, RefetchFnDynamic, Options as RefetchOptions } from './relay-hooks/useRefetchableFragmentNode'; | ||
export { | ||
RefetchFn, | ||
RefetchFnDynamic, | ||
Options as RefetchOptions, | ||
} from './relay-hooks/useRefetchableFragmentNode'; | ||
export { | ||
DataID, | ||
DeclarativeMutationConfig, | ||
Disposable, | ||
// RelayRuntime has two environment exports: one interface, one concrete. | ||
IEnvironment as Environment, | ||
GraphQLTaggedNode, | ||
MutationType, | ||
NormalizationSelector, | ||
OperationDescriptor, | ||
RangeOperation, | ||
ReaderSelector, | ||
RelayContext, | ||
Snapshot, | ||
Variables, | ||
FetchPolicy, | ||
DataID, | ||
DeclarativeMutationConfig, | ||
Disposable, | ||
// RelayRuntime has two environment exports: one interface, one concrete. | ||
IEnvironment as Environment, | ||
GraphQLTaggedNode, | ||
MutationType, | ||
NormalizationSelector, | ||
OperationDescriptor, | ||
RangeOperation, | ||
ReaderSelector, | ||
RelayContext, | ||
Snapshot, | ||
Variables, | ||
FetchPolicy, | ||
} from 'relay-runtime'; | ||
@@ -52,0 +45,0 @@ |
{ | ||
"name": "@types/react-relay", | ||
"version": "13.0.3", | ||
"version": "13.0.4", | ||
"description": "TypeScript definitions for react-relay", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-relay", | ||
}, | ||
"typesPublisherContentHash": "1c6dfd91c3b94a12653453c7719e2a9437738726aee7b844f14dc9f6da8d4999", | ||
"typesPublisherContentHash": "25331e85d1853a925e70da93c48fb29b6126246e8724894d0a3c357f3b3c5f51", | ||
"typeScriptVersion": "4.0" | ||
} |
import * as React from 'react'; | ||
import { | ||
Disposable, | ||
Environment, | ||
Observer, | ||
Variables, | ||
_FragmentRefs, | ||
_RefType | ||
} from 'relay-runtime'; | ||
import { Disposable, Environment, Observer, Variables, _FragmentRefs, _RefType } from 'relay-runtime'; | ||
@@ -12,0 +5,0 @@ export { FragmentRef } from 'relay-runtime'; |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 16 Aug 2022 00:02:33 GMT | ||
* Last updated: Wed, 17 Aug 2022 08:32:31 GMT | ||
* Dependencies: [@types/relay-runtime](https://npmjs.com/package/@types/relay-runtime), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
@@ -52,3 +52,3 @@ import { ComponentType } from 'react'; | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions = EnvironmentProviderOptions | ||
TEnvironmentProviderOptions = EnvironmentProviderOptions, | ||
> extends Readonly<{ | ||
@@ -119,3 +119,3 @@ kind: 'PreloadedQuery'; | ||
*/ | ||
TExtraProps extends {} | null | ||
TExtraProps extends {} | null, | ||
> extends Readonly<{ | ||
@@ -135,3 +135,3 @@ root: JSResourceReference< | ||
type ThinNestedEntryPointParamsObject< | ||
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined> = {} | ||
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined> = {}, | ||
> = { | ||
@@ -163,3 +163,3 @@ [K in keyof TPreloadedEntryPoints]: ThinNestedEntryPointParams<TPreloadedEntryPoints[K]>; | ||
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined>, | ||
TExtraProps extends {} | null | ||
TExtraProps extends {} | null, | ||
> extends Readonly<{ | ||
@@ -185,3 +185,3 @@ entryPoints?: ThinNestedEntryPointParamsObject<TPreloadedEntryPoints> | undefined; | ||
TRuntimeProps extends {} = {}, | ||
TExtraProps extends {} | null = {} | ||
TExtraProps extends {} | null = {}, | ||
> = ComponentType<EntryPointProps<TPreloadedQueries, TPreloadedEntryPoints, TRuntimeProps, TExtraProps>>; | ||
@@ -209,3 +209,3 @@ | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions extends EnvironmentProviderOptions = EnvironmentProviderOptions | ||
TEnvironmentProviderOptions extends EnvironmentProviderOptions = EnvironmentProviderOptions, | ||
> extends Readonly<{ | ||
@@ -212,0 +212,0 @@ /** |
@@ -11,3 +11,3 @@ import { GraphQLTaggedNode, IEnvironment, OperationType, VariablesOf } from 'relay-runtime'; | ||
TQuery extends OperationType, | ||
TEnvironmentProviderOptions extends EnvironmentProviderOptions = {} | ||
TEnvironmentProviderOptions extends EnvironmentProviderOptions = {}, | ||
>( | ||
@@ -14,0 +14,0 @@ environment: IEnvironment, |
@@ -6,3 +6,7 @@ import { GraphQLTaggedNode, OperationType } from 'relay-runtime'; | ||
export interface usePaginationFragmentHookType<TQuery extends OperationType, TKey extends KeyType | null, TFragmentData> { | ||
export interface usePaginationFragmentHookType< | ||
TQuery extends OperationType, | ||
TKey extends KeyType | null, | ||
TFragmentData, | ||
> { | ||
data: TFragmentData; | ||
@@ -9,0 +13,0 @@ loadNext: LoadMoreFn<TQuery>; |
@@ -10,5 +10,6 @@ import { DisposeFn, GraphQLTaggedNode, OperationType, VariablesOf, IEnvironment } from 'relay-runtime'; | ||
export type UseQueryLoaderLoadQueryOptions = LoadQueryOptions & Readonly<{ | ||
__environment?: IEnvironment | null | undefined, | ||
}>; | ||
export type UseQueryLoaderLoadQueryOptions = LoadQueryOptions & | ||
Readonly<{ | ||
__environment?: IEnvironment | null | undefined; | ||
}>; | ||
@@ -15,0 +16,0 @@ export function useQueryLoader<TQuery extends OperationType>( |
@@ -24,3 +24,3 @@ import { | ||
TKey extends KeyType | null, | ||
TOptions = Options | ||
TOptions = Options, | ||
> = RefetchInexactDynamicResponse<TQuery, TOptions> & RefetchExactDynamicResponse<TQuery, TOptions>; | ||
@@ -27,0 +27,0 @@ |
42507
0.15%927
-0.96%