@types/react 18.0.5 → 18.0.6
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 +4 -6
- react/package.json +12 -2
react/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (http://facebook.github.io/reac
|
|
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,
|
11
|
+
* Last updated: Thu, 21 Apr 2022 18:01:41 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
@@ -213,13 +213,11 @@ declare namespace React {
|
|
213
213
|
(props?: ClassAttributes<SVGElement> & SVGAttributes<SVGElement> | null, ...children: ReactNode[]): ReactSVGElement;
|
214
214
|
}
|
215
215
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
// ----------------------------------------------------------------------
|
220
|
-
|
216
|
+
/**
|
217
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
218
|
+
*/
|
221
219
|
type ReactText = string | number;
|
222
|
-
type ReactChild = ReactElement |
|
220
|
+
type ReactChild = ReactElement | string | number;
|
223
221
|
|
224
222
|
/**
|
225
223
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.6",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,7 +146,7 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
149
|
+
"typesPublisherContentHash": "a0fc5dcbcfe16404a35cb4d2c3150e31d591f9d8c02ee29498fda0d7b548cb8b",
|
150
150
|
"typeScriptVersion": "3.9",
|
151
151
|
"exports": {
|
152
152
|
".": {
|
@@ -154,6 +154,16 @@
|
|
154
154
|
"default": "./index.d.ts"
|
155
155
|
}
|
156
156
|
},
|
157
|
+
"./next": {
|
158
|
+
"types": {
|
159
|
+
"default": "./next.d.ts"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"./experimental": {
|
163
|
+
"types": {
|
164
|
+
"default": "./experimental.d.ts"
|
165
|
+
}
|
166
|
+
},
|
157
167
|
"./jsx-runtime": {
|
158
168
|
"types": {
|
159
169
|
"default": "./jsx-runtime.d.ts"
|