@types/react-relay
Advanced tools
Comparing version 7.0.26 to 7.0.27
@@ -14,3 +14,3 @@ import { GraphQLTaggedNode, OperationType } from "relay-runtime"; | ||
} | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useBlockingPaginationFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
@@ -20,5 +20,4 @@ fragmentInput: GraphQLTaggedNode, | ||
componentDisplayName?: string, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
): ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useBlockingPaginationFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
@@ -28,3 +27,2 @@ fragmentInput: GraphQLTaggedNode, | ||
componentDisplayName?: string, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
): ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey> | null>; |
@@ -37,7 +37,6 @@ import { | ||
} | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useLoadMoreFunction<TQuery extends OperationType>( | ||
args: UseLoadMoreFunctionArgs, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
[LoadMoreFn<TQuery>, boolean, DisposeFn]; | ||
): [LoadMoreFn<TQuery>, boolean, DisposeFn]; | ||
@@ -44,0 +43,0 @@ export function getConnectionState( |
@@ -16,13 +16,11 @@ import { GraphQLTaggedNode, OperationType } from "relay-runtime"; | ||
} | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
fragmentInput: GraphQLTaggedNode, | ||
parentFragmentRef: TKey, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnType<TQuery, TKey, KeyTypeData<TKey>>; | ||
): ReturnType<TQuery, TKey, KeyTypeData<TKey>>; | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
fragmentInput: GraphQLTaggedNode, | ||
parentFragmentRef: TKey | null, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnType<TQuery, TKey | null, KeyTypeData<TKey> | null>; | ||
): ReturnType<TQuery, TKey | null, KeyTypeData<TKey> | null>; |
@@ -10,13 +10,11 @@ import { GraphQLTaggedNode, OperationType } from "relay-runtime"; | ||
]; | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
fragmentInput: GraphQLTaggedNode, | ||
fragmentRef: TKey, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
): ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>( | ||
fragmentInput: GraphQLTaggedNode, | ||
fragmentRef: TKey | null, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
): ReturnTypeNode<TQuery, TKey, KeyTypeData<TKey> | null>; |
@@ -102,3 +102,3 @@ import { | ||
} | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useRefetchableFragmentNode<TQuery extends OperationType, TKey extends KeyType | null>( | ||
@@ -108,3 +108,2 @@ fragmentNode: ReaderFragment, | ||
componentDisplayName: string, | ||
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
ReturnTypeNode<TQuery, TKey, InternalOptions>; | ||
): ReturnTypeNode<TQuery, TKey, InternalOptions>; |
import { GraphQLSubscriptionConfig, OperationType, requestSubscription } from "relay-runtime"; | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
export function useSubscription<TSubscriptionPayload extends OperationType>( | ||
// The actual subtype of OperationType is required to allow for type inference inside GraphQLSubscriptionConfig.s | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
config: GraphQLSubscriptionConfig<TSubscriptionPayload>, | ||
requestSubscriptionFn?: typeof requestSubscription, | ||
): void; |
{ | ||
"name": "@types/react-relay", | ||
"version": "7.0.26", | ||
"version": "7.0.27", | ||
"description": "TypeScript definitions for react-relay", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-relay", | ||
}, | ||
"typesPublisherContentHash": "454e7570964cba97457cc5754121ca0d293bfccfda0546a881e022ad077f6121", | ||
"typesPublisherContentHash": "f52141586630f3bb5ee753580852edf9c910b28cec39d2a1747e3c9364adbe5e", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 22 Oct 2023 13:45:07 GMT | ||
* Last updated: Mon, 06 Nov 2023 19:41:13 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/relay-runtime](https://npmjs.com/package/@types/relay-runtime) | ||
@@ -14,0 +14,0 @@ |
43561