@types/react 16.9.18 → 16.9.19
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 +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:
|
11
|
+
* Last updated: Wed, 22 Jan 2020 17:30:26 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
@@ -2788,9 +2788,8 @@ declare namespace React {
|
|
2788
2788
|
// ----------------------------------------------------------------------
|
2789
2789
|
|
2790
2790
|
interface ReactChildren {
|
2791
|
-
map(children:
|
2792
|
-
|
2793
|
-
map<T, C>(children: C | C[], fn: (child: C, index: number) => T): Array<Exclude<T, boolean | null | undefined>>;
|
2791
|
+
map<T, C>(children: C | C[], fn: (child: C, index: number) => T):
|
2792
|
+
C extends null | undefined ? C : Array<Exclude<T, boolean | null | undefined>>;
|
2794
2793
|
forEach<C>(children: C | C[], fn: (child: C, index: number) => void): void;
|
2795
2794
|
count(children: any): number;
|
2796
2795
|
only<C>(children: C): C extends any[] ? never : C;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.19",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -124,6 +124,6 @@
|
|
124
124
|
"@types/prop-types": "*",
|
125
125
|
"csstype": "^2.2.0"
|
126
126
|
},
|
127
|
-
"typesPublisherContentHash": "
|
127
|
+
"typesPublisherContentHash": "2578868eff06740bf655198aa831dea1749873f5cbd0e1218e2cc15a6e7e8e6e",
|
128
128
|
"typeScriptVersion": "2.8"
|
129
129
|
}
|