@types/react 16.9.39 → 16.9.43

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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +4 -2
  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: Wed, 24 Jun 2020 06:57:32 GMT
11
+ * Last updated: Sat, 11 Jul 2020 19:17:49 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
@@ -1152,7 +1152,7 @@ declare namespace React {
1152
1152
  *
1153
1153
  * target - a reference to the element from which the event was originally dispatched.
1154
1154
  * This might be a child element to the element on which the event listener is registered.
1155
- * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12239
1155
+ * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1156
1156
  */
1157
1157
  interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {}
1158
1158
 
@@ -1216,6 +1216,7 @@ declare namespace React {
1216
1216
  metaKey: boolean;
1217
1217
  repeat: boolean;
1218
1218
  shiftKey: boolean;
1219
+ /** @deprecated */
1219
1220
  which: number;
1220
1221
  }
1221
1222
 
@@ -1241,7 +1242,7 @@ declare namespace React {
1241
1242
  shiftKey: boolean;
1242
1243
  }
1243
1244
 
1244
- interface TouchEvent<T = Element> extends SyntheticEvent<T, NativeTouchEvent> {
1245
+ interface TouchEvent<T = Element> extends UIEvent<T, NativeTouchEvent> {
1245
1246
  altKey: boolean;
1246
1247
  changedTouches: TouchList;
1247
1248
  ctrlKey: boolean;
@@ -1978,6 +1979,7 @@ declare namespace React {
1978
1979
 
1979
1980
  interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1980
1981
  open?: boolean;
1982
+ onToggle?: ReactEventHandler<T>;
1981
1983
  }
1982
1984
 
1983
1985
  interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.39",
3
+ "version": "16.9.43",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -144,6 +144,6 @@
144
144
  "@types/prop-types": "*",
145
145
  "csstype": "^2.2.0"
146
146
  },
147
- "typesPublisherContentHash": "8f3315eaff57b9abc3b41f2ee909a3a045f136bdbbe8e7af30baa51e2d0a2fda",
147
+ "typesPublisherContentHash": "4c80fe5a9ea8f2595672844b2abdfb11919dd20bebc5a34dafd30adbdea30c4f",
148
148
  "typeScriptVersion": "3.0"
149
149
  }