@types/react 18.2.30 → 18.2.31

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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +1 -1
  3. react/package.json +2 -2
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: Thu, 19 Oct 2023 17:44:34 GMT
11
+ * Last updated: Fri, 20 Oct 2023 14:17:42 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: () => Exclude<T, void>, 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
  *
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.30",
3
+ "version": "18.2.31",
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": "8c0ad7294ef34b5e69368b6cfba83c8c1ae37bea8b6947a49cc7ecea5b3ecb3f",
204
+ "typesPublisherContentHash": "5e704d45296f0ebcba83d5224ff9187aa470b5234d62c4ccfd47ff6857fa98fe",
205
205
  "typeScriptVersion": "4.5"
206
206
  }