@types/react 18.2.9 → 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 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: Wed, 07 Jun 2023 20:32:46 GMT
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
- | ReactFragment
261
+ | Iterable<ReactNode>
259
262
  | ReactPortal
260
263
  | boolean
261
264
  | null
@@ -2360,6 +2363,7 @@ declare namespace React {
2360
2363
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2361
2364
  as?: string | undefined;
2362
2365
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2366
+ fetchpriority?: "high" | "low" | "auto";
2363
2367
  href?: string | undefined;
2364
2368
  hrefLang?: string | undefined;
2365
2369
  integrity?: string | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.9",
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": "830e4d7bc5822cf6ff77d3cb527f1cf755418081f5afbd1cc9d6c9ff0c8a9e2d",
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
- | ReactFragment
230
+ | Iterable<ReactNode>
227
231
  | ReactPortal
228
232
  | boolean
229
233
  | null
@@ -2328,6 +2332,7 @@ declare namespace React {
2328
2332
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2329
2333
  as?: string | undefined;
2330
2334
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2335
+ fetchpriority?: "high" | "low" | "auto";
2331
2336
  href?: string | undefined;
2332
2337
  hrefLang?: string | undefined;
2333
2338
  integrity?: string | undefined;