@types/react 18.2.38 → 18.2.40
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 +1 -1
- react/index.d.ts +2 -2
- react/package.json +3 -3
- react/ts5.0/index.d.ts +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:
|
11
|
+
* Last updated: Fri, 01 Dec 2023 22:07:07 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
@@ -452,7 +452,7 @@ declare namespace React {
|
|
452
452
|
*/
|
453
453
|
type ProfilerOnRenderCallback = (
|
454
454
|
id: string,
|
455
|
-
phase: "mount" | "update",
|
455
|
+
phase: "mount" | "update" | "nested-update",
|
456
456
|
actualDuration: number,
|
457
457
|
baseDuration: number,
|
458
458
|
startTime: number,
|
@@ -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: () => T, deps: DependencyList
|
1133
|
+
function useMemo<T>(factory: () => T, deps: DependencyList): 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.
|
3
|
+
"version": "18.2.40",
|
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": "
|
205
|
-
"typeScriptVersion": "4.
|
204
|
+
"typesPublisherContentHash": "c65bc742ac93777dbe6bf37221da607aa06982b098bc16250e645a4b7df2964a",
|
205
|
+
"typeScriptVersion": "4.6"
|
206
206
|
}
|
react/ts5.0/index.d.ts
CHANGED
@@ -453,7 +453,7 @@ declare namespace React {
|
|
453
453
|
*/
|
454
454
|
type ProfilerOnRenderCallback = (
|
455
455
|
id: string,
|
456
|
-
phase: "mount" | "update",
|
456
|
+
phase: "mount" | "update" | "nested-update",
|
457
457
|
actualDuration: number,
|
458
458
|
baseDuration: number,
|
459
459
|
startTime: number,
|
@@ -1131,7 +1131,7 @@ declare namespace React {
|
|
1131
1131
|
* @see https://react.dev/reference/react/useMemo
|
1132
1132
|
*/
|
1133
1133
|
// allow undefined, but don't make it optional as that is very likely a mistake
|
1134
|
-
function useMemo<T>(factory: () => T, deps: DependencyList
|
1134
|
+
function useMemo<T>(factory: () => T, deps: DependencyList): T;
|
1135
1135
|
/**
|
1136
1136
|
* `useDebugValue` can be used to display a label for custom hooks in React DevTools.
|
1137
1137
|
*
|