@types/react 15.7.10 → 15.7.12
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 +10 -8
- 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: Wed, 18 Jan 2023 19:02:49 GMT
|
12
12
|
* Dependencies: none
|
13
13
|
* Global values: `React`
|
14
14
|
|
react v15.7/index.d.ts
CHANGED
@@ -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;
|
@@ -2672,7 +2674,7 @@ declare namespace React {
|
|
2672
2674
|
content?: string | undefined;
|
2673
2675
|
controls?: boolean | undefined;
|
2674
2676
|
coords?: string | undefined;
|
2675
|
-
crossOrigin?:
|
2677
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
2676
2678
|
data?: string | undefined;
|
2677
2679
|
dateTime?: string | undefined;
|
2678
2680
|
default?: boolean | undefined;
|
@@ -2896,7 +2898,7 @@ declare namespace React {
|
|
2896
2898
|
autoFocus?: boolean | undefined;
|
2897
2899
|
capture?: boolean | string | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
2898
2900
|
checked?: boolean | undefined;
|
2899
|
-
crossOrigin?:
|
2901
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
2900
2902
|
disabled?: boolean | undefined;
|
2901
2903
|
form?: string | undefined;
|
2902
2904
|
formAction?: string | undefined;
|
@@ -2947,7 +2949,7 @@ declare namespace React {
|
|
2947
2949
|
|
2948
2950
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
2949
2951
|
as?: string | undefined;
|
2950
|
-
crossOrigin?:
|
2952
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
2951
2953
|
href?: string | undefined;
|
2952
2954
|
hrefLang?: string | undefined;
|
2953
2955
|
integrity?: string | undefined;
|
@@ -2969,7 +2971,7 @@ declare namespace React {
|
|
2969
2971
|
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
2970
2972
|
autoPlay?: boolean | undefined;
|
2971
2973
|
controls?: boolean | undefined;
|
2972
|
-
crossOrigin?:
|
2974
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
2973
2975
|
loop?: boolean | undefined;
|
2974
2976
|
mediaGroup?: string | undefined;
|
2975
2977
|
muted?: boolean | undefined;
|
@@ -3048,7 +3050,7 @@ declare namespace React {
|
|
3048
3050
|
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
3049
3051
|
async?: boolean | undefined;
|
3050
3052
|
charSet?: string | undefined;
|
3051
|
-
crossOrigin?:
|
3053
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
3052
3054
|
defer?: boolean | undefined;
|
3053
3055
|
integrity?: string | undefined;
|
3054
3056
|
nonce?: string | undefined;
|
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.12",
|
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": "829a15ab178e1ef69a51c6369ab72820ccb4d10a2f8a82721b05f655e721b300",
|
66
|
+
"typeScriptVersion": "4.2",
|
67
67
|
"exports": {
|
68
68
|
".": {
|
69
69
|
"types": {
|