@types/react 15.7.9 → 15.7.11
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 v15.7/README.md +1 -1
- react v15.7/index.d.ts +6 -4
- react v15.7/package.json +3 -3
react v15.7/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/v15.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Thu, 27 Oct 2022 11:32:50 GMT
|
12
12
|
* Dependencies: none
|
13
13
|
* Global values: `React`
|
14
14
|
|
react v15.7/index.d.ts
CHANGED
@@ -63,7 +63,7 @@ type NativeTransitionEvent = TransitionEvent;
|
|
63
63
|
type NativeUIEvent = UIEvent;
|
64
64
|
type NativeWheelEvent = WheelEvent;
|
65
65
|
|
66
|
-
//
|
66
|
+
// eslint-disable-next-line export-just-namespace
|
67
67
|
export = React;
|
68
68
|
export as namespace React;
|
69
69
|
|
@@ -463,11 +463,13 @@ declare namespace React {
|
|
463
463
|
target: EventTarget & T;
|
464
464
|
}
|
465
465
|
|
466
|
+
type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
467
|
+
|
466
468
|
interface KeyboardEvent<T> extends SyntheticEvent<T> {
|
467
469
|
altKey: boolean;
|
468
470
|
charCode: number;
|
469
471
|
ctrlKey: boolean;
|
470
|
-
getModifierState(key:
|
472
|
+
getModifierState(key: ModifierKey): boolean;
|
471
473
|
key: string;
|
472
474
|
keyCode: number;
|
473
475
|
locale: string;
|
@@ -486,7 +488,7 @@ declare namespace React {
|
|
486
488
|
clientX: number;
|
487
489
|
clientY: number;
|
488
490
|
ctrlKey: boolean;
|
489
|
-
getModifierState(key:
|
491
|
+
getModifierState(key: ModifierKey): boolean;
|
490
492
|
metaKey: boolean;
|
491
493
|
nativeEvent: NativeMouseEvent;
|
492
494
|
pageX: number;
|
@@ -501,7 +503,7 @@ declare namespace React {
|
|
501
503
|
altKey: boolean;
|
502
504
|
changedTouches: TouchList;
|
503
505
|
ctrlKey: boolean;
|
504
|
-
getModifierState(key:
|
506
|
+
getModifierState(key: ModifierKey): boolean;
|
505
507
|
metaKey: boolean;
|
506
508
|
nativeEvent: NativeTouchEvent;
|
507
509
|
shiftKey: boolean;
|
react v15.7/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "15.7.
|
3
|
+
"version": "15.7.11",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -62,8 +62,8 @@
|
|
62
62
|
},
|
63
63
|
"scripts": {},
|
64
64
|
"dependencies": {},
|
65
|
-
"typesPublisherContentHash": "
|
66
|
-
"typeScriptVersion": "4.
|
65
|
+
"typesPublisherContentHash": "abfdda0f085e7916fc6e6dd1b10f0469af80b2a3635d9cf2fe1cb56da239b9c0",
|
66
|
+
"typeScriptVersion": "4.1",
|
67
67
|
"exports": {
|
68
68
|
".": {
|
69
69
|
"types": {
|