@types/react 18.2.16 → 18.2.17
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 +7 -1
- react/package.json +2 -2
- react/ts5.0/index.d.ts +7 -1
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: Wed, 26 Jul 2023 18:02:49 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react/index.d.ts
CHANGED
@@ -83,7 +83,13 @@ declare namespace React {
|
|
83
83
|
*/
|
84
84
|
deprecatedLegacyContext?: any,
|
85
85
|
) => ReactNode)
|
86
|
-
| (new (
|
86
|
+
| (new (
|
87
|
+
props: P,
|
88
|
+
/**
|
89
|
+
* @deprecated https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods
|
90
|
+
*/
|
91
|
+
deprecatedLegacyContext?: any,
|
92
|
+
) => Component<any, any>);
|
87
93
|
|
88
94
|
interface RefObject<T> {
|
89
95
|
readonly current: T | null;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.17",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -158,7 +158,7 @@
|
|
158
158
|
"@types/scheduler": "*",
|
159
159
|
"csstype": "^3.0.2"
|
160
160
|
},
|
161
|
-
"typesPublisherContentHash": "
|
161
|
+
"typesPublisherContentHash": "9ab7af18ed9b6ac91aebad7ff049b210d3e843e3e436d3d10f2557824cdf1ad1",
|
162
162
|
"typeScriptVersion": "4.3",
|
163
163
|
"exports": {
|
164
164
|
".": {
|
react/ts5.0/index.d.ts
CHANGED
@@ -51,7 +51,13 @@ declare namespace React {
|
|
51
51
|
*/
|
52
52
|
deprecatedLegacyContext?: any,
|
53
53
|
) => ReactElement<any, any> | null)
|
54
|
-
| (new (
|
54
|
+
| (new (
|
55
|
+
props: P,
|
56
|
+
/**
|
57
|
+
* @deprecated https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods
|
58
|
+
*/
|
59
|
+
deprecatedLegacyContext?: any,
|
60
|
+
) => Component<any, any>);
|
55
61
|
|
56
62
|
interface RefObject<T> {
|
57
63
|
readonly current: T | null;
|