@types/react 17.0.48 → 17.0.50

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: Wed, 27 Jul 2022 20:32:23 GMT
11
+ * Last updated: Tue, 13 Sep 2022 18:33:02 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/index.d.ts CHANGED
@@ -53,7 +53,7 @@ declare const UNDEFINED_VOID_ONLY: unique symbol;
53
53
  // Destructors are only allowed to return void.
54
54
  type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };
55
55
 
56
- // tslint:disable-next-line:export-just-namespace
56
+ // eslint-disable-next-line export-just-namespace
57
57
  export = React;
58
58
  export as namespace React;
59
59
 
@@ -96,7 +96,7 @@ declare namespace React {
96
96
  * - React stateless functional components that forward a `ref` will give you the `ElementRef` of the forwarded
97
97
  * to component.
98
98
  *
99
- * `C` must be the type _of_ a React component so you need to use typeof as in React.ElementRef<typeof MyComponent>.
99
+ * `C` must be the type _of_ a React component so you need to use typeof as in `React.ElementRef<typeof MyComponent>`.
100
100
  *
101
101
  * @todo In Flow, this works a little different with forwarded refs and the `AbstractComponent` that
102
102
  * `React.forwardRef()` returns.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.48",
3
+ "version": "17.0.50",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,8 +146,8 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "aa75e5afb9f5a8a3e768b0f941dde5a7a5f8be96b63ec5ac8fd2a62d99371a83",
150
- "typeScriptVersion": "4.0",
149
+ "typesPublisherContentHash": "32211c72b90e0b36dd3c0ad41510b246986bab44678c764c84eafc84dc38100a",
150
+ "typeScriptVersion": "4.1",
151
151
  "exports": {
152
152
  ".": {
153
153
  "types": {