@types/react 18.2.32 → 18.2.34

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/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 25 Oct 2023 14:17:12 GMT
11
+ * Last updated: Wed, 01 Nov 2023 22:45:31 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/index.d.ts CHANGED
@@ -1130,7 +1130,7 @@ declare namespace React {
1130
1130
  * @see https://react.dev/reference/react/useMemo
1131
1131
  */
1132
1132
  // allow undefined, but don't make it optional as that is very likely a mistake
1133
- function useMemo<T>(factory: ExcludeVoidFn<() => T>, deps: DependencyList | undefined): T;
1133
+ function useMemo<T>(factory: () => T, deps: DependencyList | undefined): T;
1134
1134
  /**
1135
1135
  * `useDebugValue` can be used to display a label for custom hooks in React DevTools.
1136
1136
  *
@@ -3272,9 +3272,6 @@ type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps
3272
3272
  : C extends { defaultProps: infer D } ? Defaultize<P, D>
3273
3273
  : P;
3274
3274
 
3275
- // Exclude implicity return undefined
3276
- type ExcludeVoidFn<T extends () => unknown> = (() => void) extends T ? never : T;
3277
-
3278
3275
  declare global {
3279
3276
  /**
3280
3277
  * @deprecated Use `React.JSX` instead of the global `JSX` namespace.
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.32",
3
+ "version": "18.2.34",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -201,6 +201,6 @@
201
201
  "@types/scheduler": "*",
202
202
  "csstype": "^3.0.2"
203
203
  },
204
- "typesPublisherContentHash": "24f4a83d3df645820fee0caa89d248672c61bf11176baee7747c2f1dc3c24dd3",
204
+ "typesPublisherContentHash": "1fdeb6aed07f46b464199111cf2c05bcbd40f44b73f7b7660c9c38e75acc7bd4",
205
205
  "typeScriptVersion": "4.5"
206
206
  }
@@ -110,7 +110,7 @@ declare module "." {
110
110
  * @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
111
111
  * @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
112
112
  */
113
- export const SuspenseList: ExoticComponent<SuspenseListProps>;
113
+ export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
114
114
 
115
115
  // tslint:disable-next-line ban-types
116
116
  export function experimental_useEffectEvent<T extends Function>(event: T): T;