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

@types/react-relay

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-relay - npm Package Compare versions

Comparing version 14.1.7 to 16.0.0

4

react-relay/package.json
{
"name": "@types/react-relay",
"version": "14.1.7",
"version": "16.0.0",
"description": "TypeScript definitions for react-relay",

@@ -41,4 +41,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-relay",

},
"typesPublisherContentHash": "5cd3afe0054038806599150f1bbdd8bf52c7edb4c3edd8b458ea78d24a42b0b9",
"typesPublisherContentHash": "12e618300dccddfaa070167d7e0e3836a5d062495d36937c739bdeffcbe5b12f",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
* Last updated: Sun, 22 Oct 2023 13:45:07 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/relay-runtime](https://npmjs.com/package/@types/relay-runtime)

@@ -14,0 +14,0 @@

@@ -15,3 +15,3 @@ /*

export type ArrayKeyType<TData = unknown> = ReadonlyArray<KeyType<ReadonlyArray<TData>> | null>;
export type ArrayKeyType<TData = unknown> = ReadonlyArray<KeyType<ReadonlyArray<TData>> | null | undefined>;
export type ArrayKeyTypeData<TKey extends ArrayKeyType<TData>, TData = unknown> = KeyTypeData<

@@ -18,0 +18,0 @@ NonNullable<TKey[number]>

@@ -19,4 +19,4 @@ import { GraphQLTaggedNode } from "relay-runtime";

fragmentInput: GraphQLTaggedNode,
fragmentRef: TKey | null,
): KeyTypeData<TKey> | null;
fragmentRef: TKey | null | undefined,
): KeyTypeData<TKey> | null | undefined;

@@ -30,3 +30,3 @@ export function useFragment<TKey extends ArrayKeyType>(

fragmentInput: GraphQLTaggedNode,
fragmentRef: TKey | null,
): ArrayKeyTypeData<TKey> | null;
fragmentRef: TKey | null | undefined,
): ArrayKeyTypeData<TKey> | null | undefined;

@@ -8,3 +8,3 @@ import { GraphQLTaggedNode, OperationType } from "relay-runtime";

TQuery extends OperationType,
TKey extends KeyType | null,
TKey extends KeyType | null | undefined,
TFragmentData,

@@ -30,4 +30,4 @@ > {

fragmentInput: GraphQLTaggedNode,
parentFragmentRef: TKey | null,
parentFragmentRef: TKey | null | undefined,
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
usePaginationFragmentHookType<TQuery, TKey | null, KeyTypeData<TKey> | null>;
usePaginationFragmentHookType<TQuery, TKey | null, KeyTypeData<TKey> | null | undefined>;

@@ -6,6 +6,7 @@ import { GraphQLTaggedNode, OperationType } from "relay-runtime";

export type useRefetchableFragmentHookType<TQuery extends OperationType, TKey extends KeyType | null, TFragmentData> = [
export type useRefetchableFragmentHookType<
TQuery extends OperationType,
TKey extends KeyType | null | undefined,
TFragmentData,
RefetchFnDynamic<TQuery, TKey>,
];
> = [TFragmentData, RefetchFnDynamic<TQuery, TKey>];

@@ -20,4 +21,4 @@ export function useRefetchableFragment<TQuery extends OperationType, TKey extends KeyType>(

fragmentInput: GraphQLTaggedNode,
fragmentRef: TKey | null,
fragmentRef: TKey | null | undefined,
): // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
useRefetchableFragmentHookType<TQuery, TKey, KeyTypeData<TKey> | null>;
useRefetchableFragmentHookType<TQuery, TKey, KeyTypeData<TKey> | null | undefined>;

@@ -23,3 +23,3 @@ import {

TQuery extends OperationType,
TKey extends KeyType | null,
TKey extends KeyType | null | undefined,
TOptions = Options,

@@ -55,3 +55,7 @@ > = RefetchInexactDynamicResponse<TQuery, TOptions> & RefetchExactDynamicResponse<TQuery, TOptions>;

// https://github.com/facebook/relay/blob/676660dc86d498624d14dc50278563fc42c3fa7d/packages/relay-experimental/useRefetchableFragmentNode.js#L77-L87
export interface ReturnTypeNode<TQuery extends OperationType, TKey extends KeyType | null, TOptions = Options> {
export interface ReturnTypeNode<
TQuery extends OperationType,
TKey extends KeyType | null | undefined,
TOptions = Options,
> {
fragmentData: unknown;

@@ -105,3 +109,3 @@ fragmentRef: unknown;

export function useRefetchableFragmentNode<TQuery extends OperationType, TKey extends KeyType | null>(
export function useRefetchableFragmentNode<TQuery extends OperationType, TKey extends KeyType | null | undefined>(
fragmentNode: ReaderFragment,

@@ -108,0 +112,0 @@ parentFragmentRef: unknown,

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