@types/react 18.0.33 → 18.0.34

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 (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: Mon, 03 Apr 2023 20:03:16 GMT
11
+ * Last updated: Mon, 10 Apr 2023 11:03:28 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/global.d.ts CHANGED
@@ -153,3 +153,5 @@ interface Text { }
153
153
  interface TouchList { }
154
154
  interface WebGLRenderingContext { }
155
155
  interface WebGL2RenderingContext { }
156
+
157
+ interface TrustedHTML { }
react/index.d.ts CHANGED
@@ -1385,7 +1385,9 @@ declare namespace React {
1385
1385
  interface DOMAttributes<T> {
1386
1386
  children?: ReactNode | undefined;
1387
1387
  dangerouslySetInnerHTML?: {
1388
- __html: string;
1388
+ // Should be InnerHTML['innerHTML'].
1389
+ // But unfortunately we're mixing renderer-specific type declarations.
1390
+ __html: string | TrustedHTML;
1389
1391
  } | undefined;
1390
1392
 
1391
1393
  // Clipboard Events
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.33",
3
+ "version": "18.0.34",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -151,7 +151,7 @@
151
151
  "@types/scheduler": "*",
152
152
  "csstype": "^3.0.2"
153
153
  },
154
- "typesPublisherContentHash": "c450eac40aaed4bae4e12e1fb69acf7b083df269bd4e2387b75c7a0a96a07098",
154
+ "typesPublisherContentHash": "339d0685f4e73708474cfe0fc9e78b2d2a63829155b96dd55c5df388121ac73f",
155
155
  "typeScriptVersion": "4.3",
156
156
  "exports": {
157
157
  ".": {