@types/react-dom 17.0.24 → 17.0.26

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.
@@ -8,8 +8,10 @@ This package contains type definitions for react-dom (https://reactjs.org).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
12
- * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
11
+ * Last updated: Mon, 09 Dec 2024 19:32:14 GMT
12
+ * Dependencies: none
13
+
14
+ * Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
15
 
14
16
  # Credits
15
17
  These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [MartynasZilinskas](https://github.com/MartynasZilinskas), [Josh Rutherford](https://github.com/theruther4d), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
@@ -49,6 +49,7 @@ export function unstable_renderSubtreeIntoContainer<P>(
49
49
  element: ReactElement<P>,
50
50
  container: Element,
51
51
  callback?: (component?: Component<P, ComponentState> | Element) => any,
52
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
52
53
  ): Component<P, ComponentState> | Element | void;
53
54
 
54
55
  export type Container = Element | Document | DocumentFragment;
@@ -91,11 +92,13 @@ export interface Renderer {
91
92
  element: ReactElement<P>,
92
93
  container: Container | null,
93
94
  callback?: () => void,
95
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
94
96
  ): Component<P, ComponentState> | Element | void;
95
97
 
96
98
  (
97
99
  element: ReactElement[],
98
100
  container: Container | null,
99
101
  callback?: () => void,
102
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
100
103
  ): Component<any, ComponentState> | Element | void;
101
104
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "17.0.24",
3
+ "version": "17.0.26",
4
4
  "description": "TypeScript definitions for react-dom",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
6
6
  "license": "MIT",
@@ -46,9 +46,10 @@
46
46
  "directory": "types/react-dom"
47
47
  },
48
48
  "scripts": {},
49
- "dependencies": {
50
- "@types/react": "^17"
49
+ "dependencies": {},
50
+ "peerDependencies": {
51
+ "@types/react": "^17.0.0"
51
52
  },
52
- "typesPublisherContentHash": "c50ffc58fc73fd4731b395b16ee56cf6b9f41f4f9334dba033ede5b30a1e7375",
53
- "typeScriptVersion": "4.5"
53
+ "typesPublisherContentHash": "b56951f05a09d12f1b2c6ed6ab2cc3bd61c30cf50a852369f37ffe2db62bcc16",
54
+ "typeScriptVersion": "5.0"
54
55
  }
@@ -357,7 +357,7 @@ export function createRenderer(): ShallowRenderer;
357
357
  // `strictNullChecks: false`.
358
358
  // - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
359
359
  declare const UNDEFINED_VOID_ONLY: unique symbol;
360
- // tslint:disable-next-line: void-return
360
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
361
361
  type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
362
362
  export function act(callback: () => Promise<void>): Promise<undefined>;
363
363
  export function act(callback: () => VoidOrUndefinedOnly): void;