@types/react 17.0.56 → 17.0.57

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 v17.0/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/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 03 Apr 2023 20:03:17 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 v17.0/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 v17.0/index.d.ts CHANGED
@@ -1341,7 +1341,9 @@ declare namespace React {
1341
1341
  interface DOMAttributes<T> {
1342
1342
  children?: ReactNode | undefined;
1343
1343
  dangerouslySetInnerHTML?: {
1344
- __html: string;
1344
+ // Should be InnerHTML['innerHTML'].
1345
+ // But unfortunately we're mixing renderer-specific type declarations.
1346
+ __html: string | TrustedHTML;
1345
1347
  } | undefined;
1346
1348
 
1347
1349
  // Clipboard Events
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.56",
3
+ "version": "17.0.57",
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": "d6e8af0f997fdd0efe00f54125091556066f4f6673bc419f90c63c842051ac73",
149
+ "typesPublisherContentHash": "22241900cfb0f91b00a0921fb8c146a9e36e12377af4e99026bb2308a7118d6d",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {