@types/react 18.0.31 → 18.0.33

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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +13 -7
  3. react/package.json +2 -2
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: Tue, 28 Mar 2023 22:03:14 GMT
11
+ * Last updated: Mon, 03 Apr 2023 20:03:16 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/index.d.ts CHANGED
@@ -132,9 +132,19 @@ declare namespace React {
132
132
  key?: Key | null | undefined;
133
133
  }
134
134
  interface RefAttributes<T> extends Attributes {
135
+ /**
136
+ * Allows getting a ref to the component instance.
137
+ * Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
138
+ * @see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom
139
+ */
135
140
  ref?: Ref<T> | undefined;
136
141
  }
137
142
  interface ClassAttributes<T> extends Attributes {
143
+ /**
144
+ * Allows getting a ref to the component instance.
145
+ * Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
146
+ * @see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom
147
+ */
138
148
  ref?: LegacyRef<T> | undefined;
139
149
  }
140
150
 
@@ -1880,11 +1890,14 @@ declare namespace React {
1880
1890
 
1881
1891
  // RDFa Attributes
1882
1892
  about?: string | undefined;
1893
+ content?: string | undefined;
1883
1894
  datatype?: string | undefined;
1884
1895
  inlist?: any;
1885
1896
  prefix?: string | undefined;
1886
1897
  property?: string | undefined;
1898
+ rel?: string | undefined;
1887
1899
  resource?: string | undefined;
1900
+ rev?: string | undefined;
1888
1901
  typeof?: string | undefined;
1889
1902
  vocab?: string | undefined;
1890
1903
 
@@ -1937,7 +1950,6 @@ declare namespace React {
1937
1950
  classID?: string | undefined;
1938
1951
  cols?: number | undefined;
1939
1952
  colSpan?: number | undefined;
1940
- content?: string | undefined;
1941
1953
  controls?: boolean | undefined;
1942
1954
  coords?: string | undefined;
1943
1955
  crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
@@ -1992,7 +2004,6 @@ declare namespace React {
1992
2004
  poster?: string | undefined;
1993
2005
  preload?: string | undefined;
1994
2006
  readOnly?: boolean | undefined;
1995
- rel?: string | undefined;
1996
2007
  required?: boolean | undefined;
1997
2008
  reversed?: boolean | undefined;
1998
2009
  rows?: number | undefined;
@@ -2047,7 +2058,6 @@ declare namespace React {
2047
2058
  hrefLang?: string | undefined;
2048
2059
  media?: string | undefined;
2049
2060
  ping?: string | undefined;
2050
- rel?: string | undefined;
2051
2061
  target?: HTMLAttributeAnchorTarget | undefined;
2052
2062
  type?: string | undefined;
2053
2063
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -2063,7 +2073,6 @@ declare namespace React {
2063
2073
  hrefLang?: string | undefined;
2064
2074
  media?: string | undefined;
2065
2075
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2066
- rel?: string | undefined;
2067
2076
  shape?: string | undefined;
2068
2077
  target?: string | undefined;
2069
2078
  }
@@ -2146,7 +2155,6 @@ declare namespace React {
2146
2155
  name?: string | undefined;
2147
2156
  noValidate?: boolean | undefined;
2148
2157
  target?: string | undefined;
2149
- rel?: string | undefined;
2150
2158
  }
2151
2159
 
2152
2160
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2285,7 +2293,6 @@ declare namespace React {
2285
2293
  imageSrcSet?: string | undefined;
2286
2294
  imageSizes?: string | undefined;
2287
2295
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2288
- rel?: string | undefined;
2289
2296
  sizes?: string | undefined;
2290
2297
  type?: string | undefined;
2291
2298
  charSet?: string | undefined;
@@ -2314,7 +2321,6 @@ declare namespace React {
2314
2321
 
2315
2322
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2316
2323
  charSet?: string | undefined;
2317
- content?: string | undefined;
2318
2324
  httpEquiv?: string | undefined;
2319
2325
  name?: string | undefined;
2320
2326
  media?: string | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.31",
3
+ "version": "18.0.33",
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": "cdd516b34f9b1735bd2460166eff3a937ca51e3d88312f285eb556789b086b8f",
154
+ "typesPublisherContentHash": "c450eac40aaed4bae4e12e1fb69acf7b083df269bd4e2387b75c7a0a96a07098",
155
155
  "typeScriptVersion": "4.3",
156
156
  "exports": {
157
157
  ".": {