@types/react-dom
Advanced tools
Comparing version 17.0.6 to 17.0.7
@@ -32,3 +32,3 @@ /** | ||
import React = require('react'); | ||
import ReactDOM = require('.'); | ||
import ReactDOM = require('./next'); | ||
@@ -38,27 +38,2 @@ export {}; | ||
declare module '.' { | ||
// enableSuspenseServerRenderer feature | ||
interface HydrationOptions { | ||
onHydrated?(suspenseInstance: Comment): void; | ||
onDeleted?(suspenseInstance: Comment): void; | ||
} | ||
// exposeConcurrentModeAPIs features | ||
interface RootOptions { | ||
hydrate?: boolean; | ||
hydrationOptions?: HydrationOptions; | ||
} | ||
interface Root { | ||
render(children: React.ReactChild | React.ReactNodeArray, callback?: () => void): void; | ||
unmount(callback?: () => void): void; | ||
} | ||
/** | ||
* Replaces `ReactDOM.render` when the `.render` method is called and enables Concurrent Mode. | ||
* | ||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#createroot | ||
*/ | ||
function createRoot(container: Element | Document | DocumentFragment | Comment, options?: RootOptions): Root; | ||
function unstable_flushControlled(callback: () => void): void; | ||
@@ -65,0 +40,0 @@ |
@@ -13,2 +13,6 @@ // Type definitions for React (react-dom) 17.0 | ||
// NOTE: Users of the upcoming React 18 release should add a reference | ||
// to 'react-dom/next' in their project. See next.d.ts's top comment | ||
// for reference and documentation on how exactly to do it. | ||
// NOTE: Users of the `experimental` builds of React should add a reference | ||
@@ -15,0 +19,0 @@ // to 'react-dom/experimental' in their project. See experimental.d.ts's top comment |
{ | ||
"name": "@types/react-dom", | ||
"version": "17.0.6", | ||
"version": "17.0.7", | ||
"description": "TypeScript definitions for React (react-dom)", | ||
@@ -52,4 +52,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom", | ||
}, | ||
"typesPublisherContentHash": "1dbc158b9cb83219a5df159ce18ad4fe94875e43b492e97065474e63882d1fe6", | ||
"typesPublisherContentHash": "1126f0839213941257a0b52c984816f3a13ac5e179c8d76686f882d31c453fcf", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 02 Jun 2021 02:01:32 GMT | ||
* Last updated: Wed, 09 Jun 2021 05:01:25 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: `ReactDOM`, `ReactDOMNodeStream`, `ReactDOMServer` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24838
9
517