@types/react-dom 18.0.8 → 18.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
react-dom/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (https://reactjs.or
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 27 Oct 2022 11:32:50 GMT
11
+ * Last updated: Fri, 23 Dec 2022 11:32:40 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
  * Global values: `ReactDOM`, `ReactDOMServer`
14
14
 
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "18.0.8",
3
+ "version": "18.0.10",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
6
6
  "license": "MIT",
@@ -49,8 +49,8 @@
49
49
  "dependencies": {
50
50
  "@types/react": "*"
51
51
  },
52
- "typesPublisherContentHash": "3b11de1cd6e3a4b8980c02393b5ad8f327a0cab6be450186469820c97110516f",
53
- "typeScriptVersion": "4.1",
52
+ "typesPublisherContentHash": "5423ad1f388a78bf72f9d4995aa595d3ca66f1750f4fcb24868ba98d3c06e615",
53
+ "typeScriptVersion": "4.2",
54
54
  "exports": {
55
55
  ".": {
56
56
  "types": {
@@ -298,8 +298,9 @@ export function createRenderer(): ShallowRenderer;
298
298
  declare const UNDEFINED_VOID_ONLY: unique symbol;
299
299
  // tslint:disable-next-line: void-return
300
300
  type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
301
- export function act(callback: () => Promise<void>): Promise<undefined>;
301
+ // While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.
302
302
  export function act(callback: () => VoidOrUndefinedOnly): void;
303
+ export function act<T>(callback: () => T | Promise<T>): Promise<T>;
303
304
 
304
305
  // Intentionally doesn't extend PromiseLike<never>.
305
306
  // Ideally this should be as hard to accidentally use as possible.