@types/react 17.0.45 → 17.0.46

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: Fri, 06 May 2022 20:01:40 GMT
11
+ * Last updated: Thu, 16 Jun 2022 09:31:35 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
@@ -1339,7 +1339,9 @@ declare namespace React {
1339
1339
  interface DOMAttributes<T> {
1340
1340
  children?: ReactNode | undefined;
1341
1341
  dangerouslySetInnerHTML?: {
1342
- __html: string;
1342
+ // Should be InnerHTML['innerHTML'].
1343
+ // But unfortunately we're mixing renderer-specific type declarations.
1344
+ __html: string | TrustedHTML;
1343
1345
  } | undefined;
1344
1346
 
1345
1347
  // Clipboard Events
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.45",
3
+ "version": "17.0.46",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,6 +146,6 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "145bbb964a75a52809261a29b2efa83ebe6a401e1e9b6250a4643d48a63fbfde",
150
- "typeScriptVersion": "3.9"
149
+ "typesPublisherContentHash": "dce66dea1dba969712cb4378e94d514431dce04b5657fab62a24220fbfb9cc14",
150
+ "typeScriptVersion": "4.0"
151
151
  }