@types/react 16.14.33 → 16.14.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 v16.14/README.md +1 -1
- react v16.14/index.d.ts +5 -3
- react v16.14/package.json +2 -2
react v16.14/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/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Thu, 27 Oct 2022 11:32:50 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 v16.14/index.d.ts
CHANGED
@@ -1198,6 +1198,8 @@ declare namespace React {
|
|
1198
1198
|
target: EventTarget & T;
|
1199
1199
|
}
|
1200
1200
|
|
1201
|
+
export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
1202
|
+
|
1201
1203
|
interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
|
1202
1204
|
altKey: boolean;
|
1203
1205
|
/** @deprecated */
|
@@ -1206,7 +1208,7 @@ declare namespace React {
|
|
1206
1208
|
/**
|
1207
1209
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1208
1210
|
*/
|
1209
|
-
getModifierState(key:
|
1211
|
+
getModifierState(key: ModifierKey): boolean;
|
1210
1212
|
/**
|
1211
1213
|
* See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
|
1212
1214
|
*/
|
@@ -1232,7 +1234,7 @@ declare namespace React {
|
|
1232
1234
|
/**
|
1233
1235
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1234
1236
|
*/
|
1235
|
-
getModifierState(key:
|
1237
|
+
getModifierState(key: ModifierKey): boolean;
|
1236
1238
|
metaKey: boolean;
|
1237
1239
|
movementX: number;
|
1238
1240
|
movementY: number;
|
@@ -1251,7 +1253,7 @@ declare namespace React {
|
|
1251
1253
|
/**
|
1252
1254
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1253
1255
|
*/
|
1254
|
-
getModifierState(key:
|
1256
|
+
getModifierState(key: ModifierKey): boolean;
|
1255
1257
|
metaKey: boolean;
|
1256
1258
|
shiftKey: boolean;
|
1257
1259
|
targetTouches: TouchList;
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
3
|
+
"version": "16.14.34",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,7 +146,7 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
149
|
+
"typesPublisherContentHash": "9b4107e39b4ec9cba67f9bcf81165374820b003b786d2153be080b774a627ac0",
|
150
150
|
"typeScriptVersion": "4.1",
|
151
151
|
"exports": {
|
152
152
|
".": {
|