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.3 to 14.1.4

6

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

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

},
"typesPublisherContentHash": "6489c4592cf2d7c44a30e30986ef4dfa997e2a3f47eba3db6cf0de3911ef84b3",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "528fb294006a3c75c360f5dde72fedbb86d6ab0b0de2223ebb414f9db0ddba8f",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Fri, 30 Dec 2022 23:03:46 GMT
* Last updated: Wed, 24 May 2023 05:32:46 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/relay-runtime](https://npmjs.com/package/@types/relay-runtime)

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

@@ -87,3 +87,3 @@ import { ComponentType } from 'react';

*
* TPreloadedEntryPoints - nested entry points, defined in the root components
* TNestedEntryPoints - nested entry points, defined in the root components
*

@@ -109,3 +109,3 @@ * TRuntimeProps - the type of additional props that you may pass to the

*/
TPreloadedEntryPoints extends {},
TNestedEntryPoints extends {},
/**

@@ -123,7 +123,7 @@ * the type of additional props that you may pass to the component (like `onClick` handler, etc) during runtime.

root: JSResourceReference<
EntryPointComponent<TPreloadedQueries, TPreloadedEntryPoints, TRuntimeProps, TExtraProps>
EntryPointComponent<TPreloadedQueries, TNestedEntryPoints, TRuntimeProps, TExtraProps>
>;
getPreloadProps: (
entryPointParams: TEntryPointParams,
) => PreloadProps<TEntryPointParams, TPreloadedQueries, TPreloadedEntryPoints, TExtraProps>;
) => PreloadProps<TEntryPointParams, TPreloadedQueries, TNestedEntryPoints, TExtraProps>;
}> {}

@@ -136,5 +136,5 @@

type ThinNestedEntryPointParamsObject<
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined> = {},
TEntryPoints extends Record<string, EntryPoint<any, any> | undefined> = {},
> = {
[K in keyof TPreloadedEntryPoints]: ThinNestedEntryPointParams<TPreloadedEntryPoints[K]>;
[K in keyof TEntryPoints]: ThinNestedEntryPointParams<TEntryPoints[K]>;
};

@@ -148,3 +148,3 @@

type PreloadedEntryPoints<TPreloadedEntryPoints> = TPreloadedEntryPoints extends Record<
type PreloadedEntryPoints<TEntryPoints> = TEntryPoints extends Record<
string,

@@ -154,4 +154,4 @@ InternalEntryPointRepresentation<any, any, any, any, any> | undefined

? {
[T in keyof TPreloadedEntryPoints]: PreloadedEntryPoint<
GetEntryPointComponentFromEntryPoint<TPreloadedEntryPoints[T]>
[T in keyof TEntryPoints]: PreloadedEntryPoint<
GetEntryPointComponentFromEntryPoint<TEntryPoints[T]>
>;

@@ -165,6 +165,6 @@ }

TPreloadedQueries extends Record<string, OperationType>,
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined>,
TNestedEntryPoints extends Record<string, EntryPoint<any, any> | undefined>,
TExtraProps extends {} | null,
> extends Readonly<{
entryPoints?: ThinNestedEntryPointParamsObject<TPreloadedEntryPoints> | undefined;
entryPoints?: ThinNestedEntryPointParamsObject<TNestedEntryPoints> | undefined;
extraProps?: TExtraProps | undefined;

@@ -175,5 +175,5 @@ queries?: ThinQueryParamsObject<TPreloadedQueries> | undefined;

// The shape of the props of the entry point `root` component
export interface EntryPointProps<TPreloadedQueries, TPreloadedEntryPoints, TRuntimeProps, TExtraProps>
export interface EntryPointProps<TPreloadedQueries, TNestedEntryPoints, TRuntimeProps, TExtraProps>
extends Readonly<{
entryPoints: PreloadedEntryPoints<TPreloadedEntryPoints>;
entryPoints: PreloadedEntryPoints<TNestedEntryPoints>;
extraProps: TExtraProps;

@@ -187,6 +187,6 @@ props: TRuntimeProps;

TPreloadedQueries extends Record<string, OperationType>,
TPreloadedEntryPoints extends Record<string, EntryPoint<any, any> | undefined>,
TNestedEntryPoints extends Record<string, EntryPoint<any, any> | undefined>,
TRuntimeProps extends {} = {},
TExtraProps extends {} | null = {},
> = ComponentType<EntryPointProps<TPreloadedQueries, TPreloadedEntryPoints, TRuntimeProps, TExtraProps>>;
> = ComponentType<EntryPointProps<TPreloadedQueries, TNestedEntryPoints, TRuntimeProps, TExtraProps>>;

@@ -196,3 +196,3 @@ // Return type of `loadEntryPoint(...)`

infer TPreloadedQueries,
infer TPreloadedEntryPoints,
infer TNestedEntryPoints,
infer TRuntimeProps,

@@ -203,3 +203,3 @@ infer TExtraProps

dispose: DisposeFn;
entryPoints: TPreloadedEntryPoints;
entryPoints: PreloadedEntryPoints<TNestedEntryPoints>;
extraProps: TExtraProps;

@@ -246,4 +246,4 @@ getComponent: () => TEntryPointComponent;

: never,
TEntryPointComponent extends EntryPointComponent<any, infer TPreloadedEntryPoints, any, any>
? TPreloadedEntryPoints
TEntryPointComponent extends EntryPointComponent<any, infer TNestedEntryPoints, any, any>
? TNestedEntryPoints
: never,

@@ -250,0 +250,0 @@ TEntryPointComponent extends EntryPointComponent<any, any, infer TRuntimeProps, any> ? TRuntimeProps : never,

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