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 1.3.7 to 1.3.8

23

react-relay/index.d.ts

@@ -12,2 +12,6 @@ // Type definitions for react-relay 1.3

// Prettified with:
// $ prettier --parser typescript --tab-width 4 --semi --trailing-comma es5 --write --print-width 120 \
// types/{react-relay,relay-runtime}/{,*}/*.ts*
export {

@@ -28,4 +32,13 @@ commitLocalUpdate,

export type FragmentOrRegularProp<T> = T extends { ' $refType': infer U } ? { ' $fragmentRefs': U } : T;
export interface _RefType<T> {
" $refType": T;
}
export interface _FragmentRefs<T> {
" $fragmentRefs": T;
}
export type FragmentOrRegularProp<T> = T extends _RefType<infer U>
? _FragmentRefs<U>
: T extends ReadonlyArray<_RefType<infer U>> ? ReadonlyArray<_FragmentRefs<U>> : T;
export type MappedFragmentProps<T> = { [K in keyof T]: FragmentOrRegularProp<T[K]> };

@@ -118,4 +131,4 @@

export interface ConnectionData {
edges?: any[];
pageInfo?: PageInfo;
edges?: ReadonlyArray<any>;
pageInfo?: Partial<PageInfo>;
}

@@ -140,5 +153,5 @@ export type RelayPaginationProp = RelayProp & {

): RelayRuntimeTypes.Variables;
export interface ConnectionConfig<T> {
export interface ConnectionConfig<P> {
direction?: "backward" | "forward";
getConnectionFromProps?(props: T): ConnectionData | undefined | null;
getConnectionFromProps?(props: P): ConnectionData | undefined | null;
getFragmentVariables?: typeof FragmentVariablesGetter;

@@ -145,0 +158,0 @@ getVariables(

{
"name": "@types/react-relay",
"version": "1.3.7",
"version": "1.3.8",
"description": "TypeScript definitions for react-relay",

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

},
"typesPublisherContentHash": "e7042f39eab88436e96500a95dd73472ec4d8cd5d4f12f2201ad85311e5f3400",
"typesPublisherContentHash": "b36da6db53d9d77f3602f1426b43173837e4c2cb366bb9e1f156c80cdc5d009b",
"typeScriptVersion": "2.8"
}

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

Additional Details
* Last updated: Mon, 06 Aug 2018 21:55:29 GMT
* Last updated: Tue, 14 Aug 2018 00:52:13 GMT
* Dependencies: relay-runtime, react

@@ -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