Socket
Socket
Sign inDemoInstall

@types/react-dom

Package Overview
Dependencies
1
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.2.19 to 18.2.20

4

react-dom/canary.d.ts

@@ -150,2 +150,6 @@ /**

}
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {
document: Document;
}
}

@@ -35,7 +35,21 @@ /**

/**
* Replaces `ReactDOM.render` when the `.render` method is called and enables Concurrent Mode.
* Different release channels declare additional types of ReactNode this particular release channel accepts.
* App or library types should never augment this interface.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {}
export type Container =
| Element
| DocumentFragment
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS[
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS
];
/**
* createRoot lets you create a root to display React components inside a browser DOM node.
*
* @see https://reactjs.org/docs/concurrent-mode-reference.html#createroot
* @see {@link https://react.dev/reference/react-dom/client/createRoot API Reference for `createRoot`}
*/
export function createRoot(container: Element | DocumentFragment, options?: RootOptions): Root;
export function createRoot(container: Container, options?: RootOptions): Root;

@@ -42,0 +56,0 @@ /**

4

react-dom/package.json
{
"name": "@types/react-dom",
"version": "18.2.19",
"version": "18.2.20",
"description": "TypeScript definitions for react-dom",

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

},
"typesPublisherContentHash": "d30f4deaf26f877b21b6f5b30f5c49b00d269d604bcf6091bdb890c70c1ada92",
"typesPublisherContentHash": "08327b45a49b0b28046f6e52cc78ca4e14e9ad53e318f407cc7e7ebf5783838e",
"typeScriptVersion": "4.6"
}

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

### Additional Details
* Last updated: Wed, 07 Feb 2024 17:06:57 GMT
* Last updated: Tue, 05 Mar 2024 16:36:00 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,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