@types/react 18.0.32 → 18.0.34

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 02 Apr 2023 08:03:03 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/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/index.d.ts CHANGED
@@ -1385,7 +1385,9 @@ declare namespace React {
1385
1385
  interface DOMAttributes<T> {
1386
1386
  children?: ReactNode | undefined;
1387
1387
  dangerouslySetInnerHTML?: {
1388
- __html: string;
1388
+ // Should be InnerHTML['innerHTML'].
1389
+ // But unfortunately we're mixing renderer-specific type declarations.
1390
+ __html: string | TrustedHTML;
1389
1391
  } | undefined;
1390
1392
 
1391
1393
  // Clipboard Events
@@ -1890,11 +1892,14 @@ declare namespace React {
1890
1892
 
1891
1893
  // RDFa Attributes
1892
1894
  about?: string | undefined;
1895
+ content?: string | undefined;
1893
1896
  datatype?: string | undefined;
1894
1897
  inlist?: any;
1895
1898
  prefix?: string | undefined;
1896
1899
  property?: string | undefined;
1900
+ rel?: string | undefined;
1897
1901
  resource?: string | undefined;
1902
+ rev?: string | undefined;
1898
1903
  typeof?: string | undefined;
1899
1904
  vocab?: string | undefined;
1900
1905
 
@@ -1947,7 +1952,6 @@ declare namespace React {
1947
1952
  classID?: string | undefined;
1948
1953
  cols?: number | undefined;
1949
1954
  colSpan?: number | undefined;
1950
- content?: string | undefined;
1951
1955
  controls?: boolean | undefined;
1952
1956
  coords?: string | undefined;
1953
1957
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
@@ -2002,7 +2006,6 @@ declare namespace React {
2002
2006
  poster?: string | undefined;
2003
2007
  preload?: string | undefined;
2004
2008
  readOnly?: boolean | undefined;
2005
- rel?: string | undefined;
2006
2009
  required?: boolean | undefined;
2007
2010
  reversed?: boolean | undefined;
2008
2011
  rows?: number | undefined;
@@ -2057,7 +2060,6 @@ declare namespace React {
2057
2060
  hrefLang?: string | undefined;
2058
2061
  media?: string | undefined;
2059
2062
  ping?: string | undefined;
2060
- rel?: string | undefined;
2061
2063
  target?: HTMLAttributeAnchorTarget | undefined;
2062
2064
  type?: string | undefined;
2063
2065
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -2073,7 +2075,6 @@ declare namespace React {
2073
2075
  hrefLang?: string | undefined;
2074
2076
  media?: string | undefined;
2075
2077
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2076
- rel?: string | undefined;
2077
2078
  shape?: string | undefined;
2078
2079
  target?: string | undefined;
2079
2080
  }
@@ -2156,7 +2157,6 @@ declare namespace React {
2156
2157
  name?: string | undefined;
2157
2158
  noValidate?: boolean | undefined;
2158
2159
  target?: string | undefined;
2159
- rel?: string | undefined;
2160
2160
  }
2161
2161
 
2162
2162
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2295,7 +2295,6 @@ declare namespace React {
2295
2295
  imageSrcSet?: string | undefined;
2296
2296
  imageSizes?: string | undefined;
2297
2297
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2298
- rel?: string | undefined;
2299
2298
  sizes?: string | undefined;
2300
2299
  type?: string | undefined;
2301
2300
  charSet?: string | undefined;
@@ -2324,7 +2323,6 @@ declare namespace React {
2324
2323
 
2325
2324
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2326
2325
  charSet?: string | undefined;
2327
- content?: string | undefined;
2328
2326
  httpEquiv?: string | undefined;
2329
2327
  name?: string | undefined;
2330
2328
  media?: string | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.32",
3
+ "version": "18.0.34",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -151,7 +151,7 @@
151
151
  "@types/scheduler": "*",
152
152
  "csstype": "^3.0.2"
153
153
  },
154
- "typesPublisherContentHash": "9d1d2419e093ce4580bee436a8317e227c17aa05565bf064ec3990a5742ad403",
154
+ "typesPublisherContentHash": "339d0685f4e73708474cfe0fc9e78b2d2a63829155b96dd55c5df388121ac73f",
155
155
  "typeScriptVersion": "4.3",
156
156
  "exports": {
157
157
  ".": {