@types/react 17.0.14 → 17.0.15

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 -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, 07 Jul 2021 18:31:44 GMT
11
+ * Last updated: Sat, 24 Jul 2021 11:01:12 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
13
13
  * Global values: `React`
14
14
 
react/index.d.ts CHANGED
@@ -2954,9 +2954,9 @@ declare namespace React {
2954
2954
  // ----------------------------------------------------------------------
2955
2955
 
2956
2956
  interface ReactChildren {
2957
- map<T, C>(children: C | C[], fn: (child: C, index: number) => T):
2957
+ map<T, C>(children: C | ReadonlyArray<C>, fn: (child: C, index: number) => T):
2958
2958
  C extends null | undefined ? C : Array<Exclude<T, boolean | null | undefined>>;
2959
- forEach<C>(children: C | C[], fn: (child: C, index: number) => void): void;
2959
+ forEach<C>(children: C | ReadonlyArray<C>, fn: (child: C, index: number) => void): void;
2960
2960
  count(children: any): number;
2961
2961
  only<C>(children: C): C extends any[] ? never : C;
2962
2962
  toArray(children: ReactNode | ReactNode[]): Array<Exclude<ReactNode, boolean | null | undefined>>;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,6 +146,6 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "29282cd8d1145f8afaa91cacf35059601e19fc519acb89af72a531adddbcbcb5",
149
+ "typesPublisherContentHash": "70920cc3ffab884affc83b036bcfe599db00cfa82fa870e55dc8f6281f59efa1",
150
150
  "typeScriptVersion": "3.6"
151
151
  }