@types/react-dom 16.9.23 → 16.9.24

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,7 +8,7 @@ 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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
11
+ * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
 
14
14
  # Credits
@@ -53,6 +53,7 @@ export function unstable_renderSubtreeIntoContainer<P>(
53
53
  element: ReactElement<P>,
54
54
  container: Element,
55
55
  callback?: (component?: Component<P, ComponentState> | Element) => any,
56
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
56
57
  ): Component<P, ComponentState> | Element | void;
57
58
 
58
59
  export type Container = Element | Document | DocumentFragment;
@@ -95,11 +96,13 @@ export interface Renderer {
95
96
  element: ReactElement<P>,
96
97
  container: Container | null,
97
98
  callback?: () => void,
99
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
98
100
  ): Component<P, ComponentState> | Element | void;
99
101
 
100
102
  (
101
103
  element: ReactElement[],
102
104
  container: Container | null,
103
105
  callback?: () => void,
106
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
104
107
  ): Component<any, ComponentState> | Element | void;
105
108
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "16.9.23",
3
+ "version": "16.9.24",
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",
@@ -49,6 +49,6 @@
49
49
  "dependencies": {
50
50
  "@types/react": "^16"
51
51
  },
52
- "typesPublisherContentHash": "8bb1aa991569b86e6fc08bf412ea073763cd829da0f449e1112af544c59bfe3e",
52
+ "typesPublisherContentHash": "0c361a6f055b51e7fbb510c81d66ae7a5cb01e455e97121eea6814ee3c11746b",
53
53
  "typeScriptVersion": "4.5"
54
54
  }
@@ -356,7 +356,7 @@ export function createRenderer(): ShallowRenderer;
356
356
  // `strictNullChecks: false`.
357
357
  // - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
358
358
  declare const UNDEFINED_VOID_ONLY: unique symbol;
359
- // tslint:disable-next-line: void-return
359
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
360
360
  type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
361
361
  export function act(callback: () => Promise<VoidOrUndefinedOnly>): Promise<undefined>;
362
362
  export function act(callback: () => VoidOrUndefinedOnly): void;