@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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +2 -3
  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: Tue, 21 Jan 2020 15:17:16 GMT
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: null, fn: (child: never, index: number) => never): null;
2792
- map(children: undefined, fn: (child: never, index: number) => never): undefined;
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.18",
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": "c91e31db856e323645690581915d6823a944f67185340f3582995c6ecb326948",
127
+ "typesPublisherContentHash": "2578868eff06740bf655198aa831dea1749873f5cbd0e1218e2cc15a6e7e8e6e",
128
128
  "typeScriptVersion": "2.8"
129
129
  }