@types/react 17.0.56 → 17.0.58

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
@@ -2,13 +2,13 @@
2
2
  > `npm install --save @types/react`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for React (http://facebook.github.io/react/).
5
+ This package contains type definitions for React (https://react.dev/).
6
6
 
7
7
  # Details
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: Wed, 12 Apr 2023 10:33:22 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
@@ -1,5 +1,5 @@
1
1
  // Type definitions for React 17.0
2
- // Project: http://facebook.github.io/react/
2
+ // Project: https://react.dev/
3
3
  // Definitions by: Asana <https://asana.com>
4
4
  // AssureSign <http://www.assuresign.com>
5
5
  // Microsoft <https://microsoft.com>
@@ -219,7 +219,6 @@ declare namespace React {
219
219
 
220
220
  //
221
221
  // React Nodes
222
- // http://facebook.github.io/react/docs/glossary.html
223
222
  // ----------------------------------------------------------------------
224
223
 
225
224
  type ReactText = string | number;
@@ -1341,7 +1340,9 @@ declare namespace React {
1341
1340
  interface DOMAttributes<T> {
1342
1341
  children?: ReactNode | undefined;
1343
1342
  dangerouslySetInnerHTML?: {
1344
- __html: string;
1343
+ // Should be InnerHTML['innerHTML'].
1344
+ // But unfortunately we're mixing renderer-specific type declarations.
1345
+ __html: string | TrustedHTML;
1345
1346
  } | undefined;
1346
1347
 
1347
1348
  // Clipboard Events
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.56",
3
+ "version": "17.0.58",
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": "d210231952550d2798f7d6d46ca5a597dc9ae62772849c1d4fed86490fb55694",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {