New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 6.0.0 to 6.0.1

44

react-relay/index.d.ts

@@ -24,2 +24,4 @@ // Type definitions for react-relay 6.0

OperationType,
_FragmentRefs,
_RefType,
} from 'relay-runtime';

@@ -40,3 +42,3 @@

observerOrCallback?: ObserverOrCallback | null,
options?: RefetchOptions
options?: RefetchOptions,
) => Disposable;

@@ -59,3 +61,3 @@ hasMore: undefined; // ensures no RelayPaginationProp is used with a refetch container

observerOrCallback?: ObserverOrCallback | null,
options?: RefetchOptions | null
options?: RefetchOptions | null,
) => Disposable | null | undefined;

@@ -65,3 +67,3 @@ readonly refetchConnection: (

observerOrCallback?: ObserverOrCallback | null,
refetchVariables?: Variables | null
refetchVariables?: Variables | null,
) => Disposable | null | undefined;

@@ -71,9 +73,2 @@ refetch: undefined; // ensures no RelayRefetchProp is used with a pagination container

export interface _RefType<T> {
' $refType': T;
}
export interface _FragmentRefs<T> {
' $fragmentRefs': T;
}
export type FragmentOrRegularProp<T> = T extends _RefType<infer U>

@@ -94,2 +89,3 @@ ? _FragmentRefs<U>

Environment,
FragmentRef,
GraphQLTaggedNode,

@@ -111,3 +107,6 @@ MutationType,

graphql,
readInlineData,
requestSubscription,
_FragmentRefs,
_RefType,
} from 'relay-runtime';

@@ -133,6 +132,2 @@

interface GeneratedNodeMap {
[key: string]: GraphQLTaggedNode;
}
export type ContainerProps<Props> = MappedFragmentProps<Pick<Props, Exclude<keyof Props, 'relay'>>>;

@@ -144,3 +139,3 @@

Component: React.ComponentType<Props & { relay?: RelayProp }>,
fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap
fragmentSpec: Record<string, GraphQLTaggedNode>,
): Container<Props>;

@@ -153,17 +148,10 @@

export function readInlineData<T extends _RefType<any>>(
fragment: GraphQLTaggedNode,
ref: FragmentOrRegularProp<T>,
): T;
type FragmentVariablesGetter = (prevVars: Variables, totalCount: number) => Variables;
export interface ConnectionConfig<Props = object> {
direction?: 'backward' | 'forward';
getConnectionFromProps?: (props: Props) => ConnectionData | null | undefined;
getFragmentVariables?: FragmentVariablesGetter;
getFragmentVariables?: (prevVars: Variables, totalCount: number) => Variables;
getVariables: (
props: Props,
paginationInfo: { count: number; cursor?: string | null },
fragmentVariables: Variables
fragmentVariables: Variables,
) => Variables;

@@ -179,4 +167,4 @@ query: GraphQLTaggedNode;

>,
fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap,
connectionConfig: ConnectionConfig<Props>
fragmentSpec: Record<string, GraphQLTaggedNode>,
connectionConfig: ConnectionConfig<Props>,
): Container<Props>;

@@ -190,4 +178,4 @@

>,
fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap,
taggedNode: GraphQLTaggedNode
fragmentSpec: Record<string, GraphQLTaggedNode>,
refetchQuery: GraphQLTaggedNode,
): Container<Props>;
{
"name": "@types/react-relay",
"version": "6.0.0",
"version": "6.0.1",
"description": "TypeScript definitions for react-relay",

@@ -55,4 +55,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "b87fed166f81e1475fe0250fdc3a5466c998092554097500b8704228bbd4b9f5",
"typesPublisherContentHash": "41885fe1407e5d623f2566d8081df775d796392955b333bf6f39bed8befee726",
"typeScriptVersion": "3.0"
}

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

Additional Details
* Last updated: Wed, 25 Sep 2019 20:58:56 GMT
* Last updated: Fri, 04 Oct 2019 21:15:16 GMT
* Dependencies: @types/react, @types/relay-runtime

@@ -14,0 +14,0 @@ * Global values: none

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