@types/react 17.0.55 → 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: Tue, 28 Mar 2023 22:03:14 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
@@ -1844,11 +1846,14 @@ declare namespace React {
1844
1846
 
1845
1847
  // RDFa Attributes
1846
1848
  about?: string | undefined;
1849
+ content?: string | undefined;
1847
1850
  datatype?: string | undefined;
1848
1851
  inlist?: any;
1849
1852
  prefix?: string | undefined;
1850
1853
  property?: string | undefined;
1854
+ rel?: string | undefined;
1851
1855
  resource?: string | undefined;
1856
+ rev?: string | undefined;
1852
1857
  typeof?: string | undefined;
1853
1858
  vocab?: string | undefined;
1854
1859
 
@@ -1901,7 +1906,6 @@ declare namespace React {
1901
1906
  classID?: string | undefined;
1902
1907
  cols?: number | undefined;
1903
1908
  colSpan?: number | undefined;
1904
- content?: string | undefined;
1905
1909
  controls?: boolean | undefined;
1906
1910
  coords?: string | undefined;
1907
1911
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
@@ -1956,7 +1960,6 @@ declare namespace React {
1956
1960
  poster?: string | undefined;
1957
1961
  preload?: string | undefined;
1958
1962
  readOnly?: boolean | undefined;
1959
- rel?: string | undefined;
1960
1963
  required?: boolean | undefined;
1961
1964
  reversed?: boolean | undefined;
1962
1965
  rows?: number | undefined;
@@ -2011,7 +2014,6 @@ declare namespace React {
2011
2014
  hrefLang?: string | undefined;
2012
2015
  media?: string | undefined;
2013
2016
  ping?: string | undefined;
2014
- rel?: string | undefined;
2015
2017
  target?: HTMLAttributeAnchorTarget | undefined;
2016
2018
  type?: string | undefined;
2017
2019
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -2027,7 +2029,6 @@ declare namespace React {
2027
2029
  hrefLang?: string | undefined;
2028
2030
  media?: string | undefined;
2029
2031
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2030
- rel?: string | undefined;
2031
2032
  shape?: string | undefined;
2032
2033
  target?: string | undefined;
2033
2034
  }
@@ -2247,7 +2248,6 @@ declare namespace React {
2247
2248
  media?: string | undefined;
2248
2249
  imageSrcSet?: string | undefined;
2249
2250
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2250
- rel?: string | undefined;
2251
2251
  sizes?: string | undefined;
2252
2252
  type?: string | undefined;
2253
2253
  charSet?: string | undefined;
@@ -2276,7 +2276,6 @@ declare namespace React {
2276
2276
 
2277
2277
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2278
2278
  charSet?: string | undefined;
2279
- content?: string | undefined;
2280
2279
  httpEquiv?: string | undefined;
2281
2280
  name?: string | undefined;
2282
2281
  media?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.55",
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": "bebe31a1248ce7eb95a125739c970f6505f7e0328675d8c2498dc8fca57e11dc",
149
+ "typesPublisherContentHash": "22241900cfb0f91b00a0921fb8c146a9e36e12377af4e99026bb2308a7118d6d",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {