@types/react 16.14.37 → 16.14.39

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
@@ -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/v16.
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
 
@@ -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
@@ -1342,7 +1342,9 @@ declare namespace React {
1342
1342
  interface DOMAttributes<T> {
1343
1343
  children?: ReactNode | undefined;
1344
1344
  dangerouslySetInnerHTML?: {
1345
- __html: string;
1345
+ // Should be InnerHTML['innerHTML'].
1346
+ // But unfortunately we're mixing renderer-specific type declarations.
1347
+ __html: string | TrustedHTML;
1346
1348
  } | undefined;
1347
1349
 
1348
1350
  // Clipboard Events
@@ -1845,11 +1847,14 @@ declare namespace React {
1845
1847
 
1846
1848
  // RDFa Attributes
1847
1849
  about?: string | undefined;
1850
+ content?: string | undefined;
1848
1851
  datatype?: string | undefined;
1849
1852
  inlist?: any;
1850
1853
  prefix?: string | undefined;
1851
1854
  property?: string | undefined;
1855
+ rel?: string | undefined;
1852
1856
  resource?: string | undefined;
1857
+ rev?: string | undefined;
1853
1858
  typeof?: string | undefined;
1854
1859
  vocab?: string | undefined;
1855
1860
 
@@ -1902,7 +1907,6 @@ declare namespace React {
1902
1907
  classID?: string | undefined;
1903
1908
  cols?: number | undefined;
1904
1909
  colSpan?: number | undefined;
1905
- content?: string | undefined;
1906
1910
  controls?: boolean | undefined;
1907
1911
  coords?: string | undefined;
1908
1912
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
@@ -1957,7 +1961,6 @@ declare namespace React {
1957
1961
  poster?: string | undefined;
1958
1962
  preload?: string | undefined;
1959
1963
  readOnly?: boolean | undefined;
1960
- rel?: string | undefined;
1961
1964
  required?: boolean | undefined;
1962
1965
  reversed?: boolean | undefined;
1963
1966
  rows?: number | undefined;
@@ -2012,7 +2015,6 @@ declare namespace React {
2012
2015
  hrefLang?: string | undefined;
2013
2016
  media?: string | undefined;
2014
2017
  ping?: string | undefined;
2015
- rel?: string | undefined;
2016
2018
  target?: HTMLAttributeAnchorTarget | undefined;
2017
2019
  type?: string | undefined;
2018
2020
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -2029,7 +2031,6 @@ declare namespace React {
2029
2031
  hrefLang?: string | undefined;
2030
2032
  media?: string | undefined;
2031
2033
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2032
- rel?: string | undefined;
2033
2034
  shape?: string | undefined;
2034
2035
  target?: string | undefined;
2035
2036
  }
@@ -2112,7 +2113,6 @@ declare namespace React {
2112
2113
  name?: string | undefined;
2113
2114
  noValidate?: boolean | undefined;
2114
2115
  target?: string | undefined;
2115
- rel?: string | undefined;
2116
2116
  }
2117
2117
 
2118
2118
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2249,7 +2249,6 @@ declare namespace React {
2249
2249
  imageSrcSet?: string | undefined;
2250
2250
  media?: string | undefined;
2251
2251
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2252
- rel?: string | undefined;
2253
2252
  sizes?: string | undefined;
2254
2253
  type?: string | undefined;
2255
2254
  charSet?: string | undefined;
@@ -2278,7 +2277,6 @@ declare namespace React {
2278
2277
 
2279
2278
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2280
2279
  charSet?: string | undefined;
2281
- content?: string | undefined;
2282
2280
  httpEquiv?: string | undefined;
2283
2281
  name?: string | undefined;
2284
2282
  media?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.14.37",
3
+ "version": "16.14.39",
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": "dd77913719e6bcc6b8c9e86b9023186834fdb40cd543a7c534c8d676d5ec6dd5",
149
+ "typesPublisherContentHash": "81c5ef638b8ab9791fda234cb09b11f1a9837aa11004e03d046ccda50c1cb7f2",
150
150
  "typeScriptVersion": "4.3",
151
151
  "exports": {
152
152
  ".": {