@types/react 16.9.42 → 16.9.46
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 -1
- 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: Mon, 10 Aug 2020 14:26:39 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react/index.d.ts
CHANGED
@@ -134,7 +134,7 @@ declare namespace React {
|
|
134
134
|
* inside your component or have to validate them.
|
135
135
|
*/
|
136
136
|
interface Attributes {
|
137
|
-
key?: Key;
|
137
|
+
key?: Key | null;
|
138
138
|
}
|
139
139
|
interface RefAttributes<T> extends Attributes {
|
140
140
|
ref?: Ref<T>;
|
@@ -1200,6 +1200,7 @@ declare namespace React {
|
|
1200
1200
|
|
1201
1201
|
interface KeyboardEvent<T = Element> extends SyntheticEvent<T, NativeKeyboardEvent> {
|
1202
1202
|
altKey: boolean;
|
1203
|
+
/** @deprecated */
|
1203
1204
|
charCode: number;
|
1204
1205
|
ctrlKey: boolean;
|
1205
1206
|
/**
|
@@ -1210,6 +1211,7 @@ declare namespace React {
|
|
1210
1211
|
* See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
|
1211
1212
|
*/
|
1212
1213
|
key: string;
|
1214
|
+
/** @deprecated */
|
1213
1215
|
keyCode: number;
|
1214
1216
|
locale: string;
|
1215
1217
|
location: number;
|
@@ -1979,6 +1981,7 @@ declare namespace React {
|
|
1979
1981
|
|
1980
1982
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
1981
1983
|
open?: boolean;
|
1984
|
+
onToggle?: ReactEventHandler<T>;
|
1982
1985
|
}
|
1983
1986
|
|
1984
1987
|
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2024,6 +2027,7 @@ declare namespace React {
|
|
2024
2027
|
allowTransparency?: boolean;
|
2025
2028
|
frameBorder?: number | string;
|
2026
2029
|
height?: number | string;
|
2030
|
+
loading?: "eager" | "lazy";
|
2027
2031
|
marginHeight?: number;
|
2028
2032
|
marginWidth?: number;
|
2029
2033
|
name?: string;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.46",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -142,8 +142,8 @@
|
|
142
142
|
"scripts": {},
|
143
143
|
"dependencies": {
|
144
144
|
"@types/prop-types": "*",
|
145
|
-
"csstype": "^
|
145
|
+
"csstype": "^3.0.2"
|
146
146
|
},
|
147
|
-
"typesPublisherContentHash": "
|
147
|
+
"typesPublisherContentHash": "77d149cb3e20a6ccc396fe24a2912fa8353defe3c88322c173f540ba11e9c665",
|
148
148
|
"typeScriptVersion": "3.0"
|
149
149
|
}
|