Socket
Socket
Sign inDemoInstall

@types/react

Package Overview
Dependencies
2
Maintainers
1
Versions
594
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.2.76 to 18.2.77

24

react/canary.d.ts

@@ -33,2 +33,7 @@ /**

/**
* @internal
*/
interface ReactContextAsReactNode extends React.Context<React.ReactNode> {}
declare module "." {

@@ -145,2 +150,21 @@ interface ThenableImpl<T> {

}
/**
* @internal Use `Awaited<ReactNode>` instead
*/
// Helper type to enable `Awaited<ReactNode>`.
// Must be a copy of the non-thenables of `ReactNode`.
type AwaitedReactNode =
| ReactElement
| string
| number
| Iterable<AwaitedReactNode>
| ReactPortal
| boolean
| null
| undefined;
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
contexts: ReactContextAsReactNode;
promises: Promise<AwaitedReactNode>;
}
}

18

react/experimental.d.ts

@@ -45,20 +45,2 @@ /**

declare module "." {
/**
* @internal Use `Awaited<ReactNode>` instead
*/
// Helper type to enable `Awaited<ReactNode>`.
// Must be a copy of the non-thenables of `ReactNode`.
type AwaitedReactNode =
| ReactElement
| string
| number
| Iterable<AwaitedReactNode>
| ReactPortal
| boolean
| null
| undefined;
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
promises: Promise<AwaitedReactNode>;
}
export interface SuspenseProps {

@@ -65,0 +47,0 @@ /**

4

react/package.json
{
"name": "@types/react",
"version": "18.2.76",
"version": "18.2.77",
"description": "TypeScript definitions for react",

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

},
"typesPublisherContentHash": "8c16114990a8e048e26e229aeea3fc3809477c4cd0c0c10b84db39ded9fd44c6",
"typesPublisherContentHash": "2773ff59b2dd54e1c4b4a9ab41c84eeb90f5e19a520b41273cb1ac6538b0e49c",
"typeScriptVersion": "4.7"
}

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

### Additional Details
* Last updated: Thu, 11 Apr 2024 17:35:56 GMT
* Last updated: Thu, 11 Apr 2024 21:35:20 GMT
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)

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

@@ -33,2 +33,7 @@ /**

/**
* @internal
*/
interface ReactContextAsReactNode extends React.Context<React.ReactNode> {}
declare module "." {

@@ -145,2 +150,21 @@ interface ThenableImpl<T> {

}
/**
* @internal Use `Awaited<ReactNode>` instead
*/
// Helper type to enable `Awaited<ReactNode>`.
// Must be a copy of the non-thenables of `ReactNode`.
type AwaitedReactNode =
| ReactElement
| string
| number
| Iterable<AwaitedReactNode>
| ReactPortal
| boolean
| null
| undefined;
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
contexts: ReactContextAsReactNode;
promises: Promise<AwaitedReactNode>;
}
}

@@ -45,20 +45,2 @@ /**

declare module "." {
/**
* @internal Use `Awaited<ReactNode>` instead
*/
// Helper type to enable `Awaited<ReactNode>`.
// Must be a copy of the non-thenables of `ReactNode`.
type AwaitedReactNode =
| ReactElement
| string
| number
| Iterable<AwaitedReactNode>
| ReactPortal
| boolean
| null
| undefined;
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
promises: Promise<AwaitedReactNode>;
}
export interface SuspenseProps {

@@ -65,0 +47,0 @@ /**

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc