Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

relay-hooks

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relay-hooks - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

9

lib/es/useFragment.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc