@types/react 18.0.11 → 18.0.12

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 +1 -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: Sat, 04 Jun 2022 02:31:30 GMT
11
+ * Last updated: Sun, 05 Jun 2022 21:01:33 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
@@ -796,7 +796,7 @@ declare namespace React {
796
796
  : P
797
797
  : P;
798
798
 
799
- type PropsWithChildren<P> = P & { children?: ReactNode | undefined };
799
+ type PropsWithChildren<P = unknown> = P & { children?: ReactNode | undefined };
800
800
 
801
801
  /**
802
802
  * NOTE: prefer ComponentPropsWithRef, if the ref is forwarded,
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.11",
3
+ "version": "18.0.12",
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": "83771538e0c81ac26bff51aebc7d8c2584e407ad37595381ee0af0a6b07c35da",
149
+ "typesPublisherContentHash": "3906b8197866c4c6082c0e3981e6112137a54b1a7825c67e65cbddffebcba60e",
150
150
  "typeScriptVersion": "3.9",
151
151
  "exports": {
152
152
  ".": {