@types/react 16.8.21 → 16.8.22

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 +2 -2
  2. react/index.d.ts +1 -4
  3. react/package.json +2 -7
react/README.md CHANGED
@@ -8,9 +8,9 @@ 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: Thu, 20 Jun 2019 00:27:39 GMT
11
+ * Last updated: Fri, 21 Jun 2019 00:47:44 GMT
12
12
  * Dependencies: @types/csstype, @types/prop-types
13
13
  * Global values: React
14
14
 
15
15
  # Credits
16
- These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Josh Rutherford <https://github.com/theruther4d>, Guilherme Hübner <https://github.com/guilhermehubner>, Ferdy Budhidharma <https://github.com/ferdaber>, Johann Rakotoharisoa <https://github.com/jrakotoharisoa>, Olivier Pascal <https://github.com/pascaloliv>, Martin Hochel <https://github.com/hotell>, Frank Li <https://github.com/franklixuefei>, Jessica Franco <https://github.com/Jessidhia>, Saransh Kataria <https://github.com/saranshkataria>, Kanitkorn Sujautra <https://github.com/lukyth>, Sebastian Silbermann <https://github.com/eps1lon>, and Chris Sauve <https://github.com/lemonmade>.
16
+ These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Josh Rutherford <https://github.com/theruther4d>, Guilherme Hübner <https://github.com/guilhermehubner>, Ferdy Budhidharma <https://github.com/ferdaber>, Johann Rakotoharisoa <https://github.com/jrakotoharisoa>, Olivier Pascal <https://github.com/pascaloliv>, Martin Hochel <https://github.com/hotell>, Frank Li <https://github.com/franklixuefei>, Jessica Franco <https://github.com/Jessidhia>, Saransh Kataria <https://github.com/saranshkataria>, Kanitkorn Sujautra <https://github.com/lukyth>, and Sebastian Silbermann <https://github.com/eps1lon>.
react/index.d.ts CHANGED
@@ -21,7 +21,6 @@
21
21
  // Saransh Kataria <https://github.com/saranshkataria>
22
22
  // Kanitkorn Sujautra <https://github.com/lukyth>
23
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Chris Sauve <https://github.com/lemonmade>
25
24
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
26
25
  // TypeScript Version: 2.8
27
26
 
@@ -805,9 +804,7 @@ declare namespace React {
805
804
  // based on the code in https://github.com/facebook/react/pull/13968
806
805
 
807
806
  // Unlike the class component setState, the updates are not allowed to be partial
808
- type SetStateAction<S> = S extends ((...args: any[]) => any) ?
809
- (prevState: S) => S :
810
- (S | ((prevState: S) => S));
807
+ type SetStateAction<S> = S | ((prevState: S) => S);
811
808
  // this technically does accept a second argument, but it's already under a deprecation warning
812
809
  // and it's not even released so probably better to not define it.
813
810
  type Dispatch<A> = (value: A) => void;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.8.21",
3
+ "version": "16.8.22",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -105,11 +105,6 @@
105
105
  "name": "Sebastian Silbermann",
106
106
  "url": "https://github.com/eps1lon",
107
107
  "githubUsername": "eps1lon"
108
- },
109
- {
110
- "name": "Chris Sauve",
111
- "url": "https://github.com/lemonmade",
112
- "githubUsername": "lemonmade"
113
108
  }
114
109
  ],
115
110
  "main": "",
@@ -124,6 +119,6 @@
124
119
  "@types/prop-types": "*",
125
120
  "csstype": "^2.2.0"
126
121
  },
127
- "typesPublisherContentHash": "1b53fe34797cce215d33ead1a08dc8b06fbcbcf3953217b222390bd90f085c33",
122
+ "typesPublisherContentHash": "12b97578e704c3f9ed778d418f5f6e1fc8abce153e6e4986206e7b06ec6689b4",
128
123
  "typeScriptVersion": "2.8"
129
124
  }