relay-hooks
Advanced tools
Comparing version 8.0.1 to 8.0.2
import { GraphQLTaggedNode } from 'relay-runtime'; | ||
import { KeyType, KeyReturnType, $Call, ArrayKeyType, ArrayKeyReturnType } from './RelayHooksTypes'; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): $Call<KeyReturnType<TKey>>; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): $Call<KeyReturnType<TKey>>; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useSuspenseFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useSuspenseFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: $Call<KeyReturnType<TKey>>) => void): void; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null, callback: (data: $Call<KeyReturnType<TKey>> | null) => void): void; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: $Call<KeyReturnType<TKey>> | null) => void): void; | ||
export declare function useFragmentSubscription<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>) => void): void; | ||
export declare function useFragmentSubscription<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>) => void): void; |
import { GraphQLTaggedNode, OperationType } from 'relay-runtime'; | ||
import { KeyType, KeyTypeData, ReturnTypePagination, ReturnTypePaginationSuspense } from './RelayHooksTypes'; | ||
export declare function usePagination<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypePagination<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function usePagination<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypePagination<TQuery, TKey | null, KeyTypeData<TKey> | null>; | ||
export declare function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypePaginationSuspense<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypePaginationSuspense<TQuery, TKey | null, KeyTypeData<TKey> | null>; | ||
export declare function usePaginationSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReturnTypePagination<TQuery, TKey, KeyTypeData<TKey>>) => void): void; | ||
export declare function usePaginationSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReturnTypePagination<TQuery, TKey | null, KeyTypeData<TKey> | null>) => void): void; |
import { GraphQLTaggedNode, OperationType } from 'relay-runtime'; | ||
import { KeyType, KeyTypeData, ReturnTypeRefetchNode, ReturnTypeRefetchSuspenseNode } from './RelayHooksTypes'; | ||
export declare function useRefetchable<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function useRefetchable<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
export declare function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypeRefetchSuspenseNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypeRefetchSuspenseNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
export declare function useRefetchableSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey>>) => void): void; | ||
export declare function useRefetchableSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey> | null>) => void): void; |
import { GraphQLTaggedNode } from 'relay-runtime'; | ||
import { KeyType, KeyReturnType, $Call, ArrayKeyType, ArrayKeyReturnType } from './RelayHooksTypes'; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): $Call<KeyReturnType<TKey>>; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): $Call<KeyReturnType<TKey>>; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useSuspenseFragment<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): $Call<KeyReturnType<TKey>> | null; | ||
export declare function useSuspenseFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useSuspenseFragment<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: $Call<KeyReturnType<TKey>>) => void): void; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null, callback: (data: $Call<KeyReturnType<TKey>> | null) => void): void; | ||
export declare function useFragmentSubscription<TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: $Call<KeyReturnType<TKey>> | null) => void): void; | ||
export declare function useFragmentSubscription<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>) => void): void; | ||
export declare function useFragmentSubscription<TKey extends ArrayKeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReadonlyArray<$Call<ArrayKeyReturnType<TKey>>>) => void): void; |
import { GraphQLTaggedNode, OperationType } from 'relay-runtime'; | ||
import { KeyType, KeyTypeData, ReturnTypePagination, ReturnTypePaginationSuspense } from './RelayHooksTypes'; | ||
export declare function usePagination<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypePagination<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function usePagination<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypePagination<TQuery, TKey | null, KeyTypeData<TKey> | null>; | ||
export declare function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypePaginationSuspense<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function usePaginationFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypePaginationSuspense<TQuery, TKey | null, KeyTypeData<TKey> | null>; | ||
export declare function usePaginationSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReturnTypePagination<TQuery, TKey, KeyTypeData<TKey>>) => void): void; | ||
export declare function usePaginationSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentNode: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReturnTypePagination<TQuery, TKey | null, KeyTypeData<TKey> | null>) => void): void; |
import { GraphQLTaggedNode, OperationType } from 'relay-runtime'; | ||
import { KeyType, KeyTypeData, ReturnTypeRefetchNode, ReturnTypeRefetchSuspenseNode } from './RelayHooksTypes'; | ||
export declare function useRefetchable<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function useRefetchable<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
export declare function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey): ReturnTypeRefetchSuspenseNode<TQuery, TKey, KeyTypeData<TKey>>; | ||
export declare function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined): ReturnTypeRefetchSuspenseNode<TQuery, TKey, KeyTypeData<TKey> | null>; | ||
export declare function useRefetchableSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey, callback: (data: ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey>>) => void): void; | ||
export declare function useRefetchableSubscription<TQuery extends OperationType, TKey extends KeyType>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey | null | undefined, callback: (data: ReturnTypeRefetchNode<TQuery, TKey, KeyTypeData<TKey> | null>) => void): void; |
{ | ||
"name": "relay-hooks", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "graphql", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
495188
4866