@types/react 18.2.15 → 18.2.17

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 (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 13 Jul 2023 17:02:48 GMT
11
+ * Last updated: Wed, 26 Jul 2023 18:02:49 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
@@ -83,7 +83,13 @@ declare namespace React {
83
83
  */
84
84
  deprecatedLegacyContext?: any,
85
85
  ) => ReactNode)
86
- | (new (props: P) => Component<any, any>);
86
+ | (new (
87
+ props: P,
88
+ /**
89
+ * @deprecated https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods
90
+ */
91
+ deprecatedLegacyContext?: any,
92
+ ) => Component<any, any>);
87
93
 
88
94
  interface RefObject<T> {
89
95
  readonly current: T | null;
@@ -2402,6 +2408,7 @@ declare namespace React {
2402
2408
  httpEquiv?: string | undefined;
2403
2409
  name?: string | undefined;
2404
2410
  media?: string | undefined;
2411
+ content?: string | undefined;
2405
2412
  }
2406
2413
 
2407
2414
  interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.15",
3
+ "version": "18.2.17",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -158,7 +158,7 @@
158
158
  "@types/scheduler": "*",
159
159
  "csstype": "^3.0.2"
160
160
  },
161
- "typesPublisherContentHash": "ed4ae2a1124625e2cb6d4f15ecf30e9bd3153c4b51f62fd8fd7941e5347a7d0d",
161
+ "typesPublisherContentHash": "9ab7af18ed9b6ac91aebad7ff049b210d3e843e3e436d3d10f2557824cdf1ad1",
162
162
  "typeScriptVersion": "4.3",
163
163
  "exports": {
164
164
  ".": {
react/ts5.0/index.d.ts CHANGED
@@ -51,7 +51,13 @@ declare namespace React {
51
51
  */
52
52
  deprecatedLegacyContext?: any,
53
53
  ) => ReactElement<any, any> | null)
54
- | (new (props: P) => Component<any, any>);
54
+ | (new (
55
+ props: P,
56
+ /**
57
+ * @deprecated https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods
58
+ */
59
+ deprecatedLegacyContext?: any,
60
+ ) => Component<any, any>);
55
61
 
56
62
  interface RefObject<T> {
57
63
  readonly current: T | null;