@types/react 18.0.6 → 18.0.7

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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +4 -1
  3. react/package.json +2 -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, 21 Apr 2022 18:01:41 GMT
11
+ * Last updated: Mon, 25 Apr 2022 19:01:46 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
@@ -217,6 +217,9 @@ declare namespace React {
217
217
  * @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
218
218
  */
219
219
  type ReactText = string | number;
220
+ /**
221
+ * @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
222
+ */
220
223
  type ReactChild = ReactElement | string | number;
221
224
 
222
225
  /**
@@ -224,7 +227,7 @@ declare namespace React {
224
227
  */
225
228
  interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
226
229
  type ReactFragment = Iterable<ReactNode>;
227
- type ReactNode = ReactChild | ReactFragment | ReactPortal | boolean | null | undefined;
230
+ type ReactNode = ReactElement | string | number | ReactFragment | ReactPortal | boolean | null | undefined;
228
231
 
229
232
  //
230
233
  // Top Level API
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.6",
3
+ "version": "18.0.7",
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": "a0fc5dcbcfe16404a35cb4d2c3150e31d591f9d8c02ee29498fda0d7b548cb8b",
149
+ "typesPublisherContentHash": "9bf0c0d821eb2f24e24e432e0aeeb25bde800e76a03f272ab1664668f71fc7e2",
150
150
  "typeScriptVersion": "3.9",
151
151
  "exports": {
152
152
  ".": {