@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 +1 -1
- react/global.d.ts +1 -0
- react/index.d.ts +4 -4
- 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:
|
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
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:
|
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
|
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,
|
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.
|
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": "
|
132
|
+
"typesPublisherContentHash": "015dca0fd9f20e089434d50e9de6bab932414e8d745d771e0aba98c880d57c3d",
|
133
133
|
"typeScriptVersion": "2.8"
|
134
134
|
}
|