@types/react 18.2.10 → 18.2.11
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 -1
- react/package.json +2 -2
- react/ts5.0/index.d.ts +5 -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: Sat, 10 Jun 2023
|
11
|
+
* Last updated: Sat, 10 Jun 2023 15:02:50 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
@@ -243,6 +243,9 @@ declare namespace React {
|
|
243
243
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
244
244
|
*/
|
245
245
|
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
246
|
+
/**
|
247
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
248
|
+
*/
|
246
249
|
type ReactFragment = Iterable<ReactNode>;
|
247
250
|
|
248
251
|
/**
|
@@ -255,7 +258,7 @@ declare namespace React {
|
|
255
258
|
| ReactElement
|
256
259
|
| string
|
257
260
|
| number
|
258
|
-
|
|
261
|
+
| Iterable<ReactNode>
|
259
262
|
| ReactPortal
|
260
263
|
| boolean
|
261
264
|
| null
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.11",
|
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": "5ff37699cd67d56fc9e30f39678818ff90d4efa0c2a7dde230358023714236e2",
|
162
162
|
"typeScriptVersion": "4.3",
|
163
163
|
"exports": {
|
164
164
|
".": {
|
react/ts5.0/index.d.ts
CHANGED
@@ -211,6 +211,10 @@ declare namespace React {
|
|
211
211
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
212
212
|
*/
|
213
213
|
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
214
|
+
/**
|
215
|
+
* WARNING: Not related to `React.Fragment`.
|
216
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
217
|
+
*/
|
214
218
|
type ReactFragment = Iterable<ReactNode>;
|
215
219
|
|
216
220
|
/**
|
@@ -223,7 +227,7 @@ declare namespace React {
|
|
223
227
|
| ReactElement
|
224
228
|
| string
|
225
229
|
| number
|
226
|
-
|
|
230
|
+
| Iterable<ReactNode>
|
227
231
|
| ReactPortal
|
228
232
|
| boolean
|
229
233
|
| null
|