@types/react 16.9.27 → 16.9.31

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 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: Sat, 28 Mar 2020 19:54:04 GMT
11
+ * Last updated: Tue, 31 Mar 2020 21:43:51 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/global.d.ts CHANGED
@@ -27,6 +27,7 @@ interface DataTransfer { }
27
27
  interface StyleMedia { }
28
28
 
29
29
  interface Element { }
30
+ interface DocumentFragment { }
30
31
 
31
32
  interface HTMLElement extends Element { }
32
33
  interface HTMLAnchorElement extends HTMLElement { }
react/index.d.ts CHANGED
@@ -552,7 +552,7 @@ declare namespace React {
552
552
  type FC<P = {}> = FunctionComponent<P>;
553
553
 
554
554
  interface FunctionComponent<P = {}> {
555
- (props: PropsWithChildren<P>, context?: any): ReactElement | null;
555
+ (props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null;
556
556
  propTypes?: WeakValidationMap<P>;
557
557
  contextTypes?: ValidationMap<any>;
558
558
  defaultProps?: Partial<P>;
@@ -560,7 +560,7 @@ declare namespace React {
560
560
  }
561
561
 
562
562
  interface ForwardRefRenderFunction<T, P = {}> {
563
- (props: PropsWithChildren<P>, ref: Ref<T>): ReactElement | null;
563
+ (props: PropsWithChildren<P>, ref: ((instance: T | null) => void) | MutableRefObject<T | null> | null): ReactElement | null;
564
564
  displayName?: string;
565
565
  // explicit rejected with `never` required due to
566
566
  // https://github.com/microsoft/TypeScript/issues/36826
@@ -1225,7 +1225,7 @@ declare namespace React {
1225
1225
  which: number;
1226
1226
  }
1227
1227
 
1228
- interface MouseEvent<T = Element, E = NativeMouseEvent> extends SyntheticEvent<T, E> {
1228
+ interface MouseEvent<T = Element, E = NativeMouseEvent> extends UIEvent<T, E> {
1229
1229
  altKey: boolean;
1230
1230
  button: number;
1231
1231
  buttons: number;
@@ -1261,7 +1261,7 @@ declare namespace React {
1261
1261
  touches: TouchList;
1262
1262
  }
1263
1263
 
1264
- interface UIEvent<T = Element> extends SyntheticEvent<T, NativeUIEvent> {
1264
+ interface UIEvent<T = Element, E = NativeUIEvent> extends SyntheticEvent<T, E> {
1265
1265
  detail: number;
1266
1266
  view: AbstractView;
1267
1267
  }
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.27",
3
+ "version": "16.9.31",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -129,6 +129,6 @@
129
129
  "@types/prop-types": "*",
130
130
  "csstype": "^2.2.0"
131
131
  },
132
- "typesPublisherContentHash": "cfd92d0c9020381121011e3aae1e48829605dc1b6d663f7a4d78af19143a2ff6",
132
+ "typesPublisherContentHash": "015dca0fd9f20e089434d50e9de6bab932414e8d745d771e0aba98c880d57c3d",
133
133
  "typeScriptVersion": "2.8"
134
134
  }