@types/react 17.0.39 → 17.0.42
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 +1 -1
- react/index.d.ts +3 -0
- react/package.json +3 -3
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:
|
11
|
+
* Last updated: Wed, 23 Mar 2022 05:31:41 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
@@ -88,6 +88,7 @@ declare namespace React {
|
|
88
88
|
interface RefObject<T> {
|
89
89
|
readonly current: T | null;
|
90
90
|
}
|
91
|
+
// Bivariance hack for consistent unsoundness with RefObject
|
91
92
|
type RefCallback<T> = { bivarianceHack(instance: T | null): void }["bivarianceHack"];
|
92
93
|
type Ref<T> = RefCallback<T> | RefObject<T> | null;
|
93
94
|
type LegacyRef<T> = string | Ref<T>;
|
@@ -1394,7 +1395,9 @@ declare namespace React {
|
|
1394
1395
|
// Keyboard Events
|
1395
1396
|
onKeyDown?: KeyboardEventHandler<T> | undefined;
|
1396
1397
|
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
|
1398
|
+
/** @deprecated */
|
1397
1399
|
onKeyPress?: KeyboardEventHandler<T> | undefined;
|
1400
|
+
/** @deprecated */
|
1398
1401
|
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
|
1399
1402
|
onKeyUp?: KeyboardEventHandler<T> | undefined;
|
1400
1403
|
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.42",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,6 +146,6 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
150
|
-
"typeScriptVersion": "3.
|
149
|
+
"typesPublisherContentHash": "c011feb2208b1232e6acab0b32a72a64cb4d3cf1106a3e334204a40d98259729",
|
150
|
+
"typeScriptVersion": "3.9"
|
151
151
|
}
|