@types/react 16.14.38 → 16.14.40

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 v16.14/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/v16.
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
 
@@ -149,3 +149,5 @@ interface Text { }
149
149
  interface TouchList { }
150
150
  interface WebGLRenderingContext { }
151
151
  interface WebGL2RenderingContext { }
152
+
153
+ interface TrustedHTML { }
react v16.14/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Type definitions for React 16.14
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>
@@ -224,7 +224,6 @@ declare namespace React {
224
224
 
225
225
  //
226
226
  // React Nodes
227
- // http://facebook.github.io/react/docs/glossary.html
228
227
  // ----------------------------------------------------------------------
229
228
 
230
229
  type ReactText = string | number;
@@ -1342,7 +1341,9 @@ declare namespace React {
1342
1341
  interface DOMAttributes<T> {
1343
1342
  children?: ReactNode | undefined;
1344
1343
  dangerouslySetInnerHTML?: {
1345
- __html: string;
1344
+ // Should be InnerHTML['innerHTML'].
1345
+ // But unfortunately we're mixing renderer-specific type declarations.
1346
+ __html: string | TrustedHTML;
1346
1347
  } | undefined;
1347
1348
 
1348
1349
  // Clipboard Events
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.14.38",
3
+ "version": "16.14.40",
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": "dcebf7e9018d5cf9a37d6a48d028ae044bab2961bc751ed1f48e10194bbdcaaf",
149
+ "typesPublisherContentHash": "26d07ef9ed9e7ed7c41b01cdd086d83b2b5e09be33e116fb735b5ab64d3024ea",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {