@types/react 18.0.23 → 18.0.24
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 +5 -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:
|
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/index.d.ts
CHANGED
@@ -1249,6 +1249,8 @@ declare namespace React {
|
|
1249
1249
|
target: EventTarget & T;
|
1250
1250
|
}
|
1251
1251
|
|
1252
|
+
export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
1253
|
+
|
1252
1254
|
interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
|
1253
1255
|
altKey: boolean;
|
1254
1256
|
/** @deprecated */
|
@@ -1258,7 +1260,7 @@ declare namespace React {
|
|
1258
1260
|
/**
|
1259
1261
|
* 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.
|
1260
1262
|
*/
|
1261
|
-
getModifierState(key:
|
1263
|
+
getModifierState(key: ModifierKey): boolean;
|
1262
1264
|
/**
|
1263
1265
|
* See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
|
1264
1266
|
*/
|
@@ -1284,7 +1286,7 @@ declare namespace React {
|
|
1284
1286
|
/**
|
1285
1287
|
* 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.
|
1286
1288
|
*/
|
1287
|
-
getModifierState(key:
|
1289
|
+
getModifierState(key: ModifierKey): boolean;
|
1288
1290
|
metaKey: boolean;
|
1289
1291
|
movementX: number;
|
1290
1292
|
movementY: number;
|
@@ -1303,7 +1305,7 @@ declare namespace React {
|
|
1303
1305
|
/**
|
1304
1306
|
* 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.
|
1305
1307
|
*/
|
1306
|
-
getModifierState(key:
|
1308
|
+
getModifierState(key: ModifierKey): boolean;
|
1307
1309
|
metaKey: boolean;
|
1308
1310
|
shiftKey: boolean;
|
1309
1311
|
targetTouches: TouchList;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.24",
|
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": "7834dcdae9bdbf084395b391465cbd6a7e838a24ca26482cf3bd8fe799f1c88f",
|
150
150
|
"typeScriptVersion": "4.1",
|
151
151
|
"exports": {
|
152
152
|
".": {
|