@types/react 16.8.17 → 16.8.21

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 CHANGED
@@ -2,15 +2,15 @@
2
2
  > `npm install --save @types/react`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for React ( http://facebook.github.io/react/ ).
5
+ This package contains type definitions for React (http://facebook.github.io/react/).
6
6
 
7
7
  # Details
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, 08 May 2019 03:15:30 GMT
11
+ * Last updated: Thu, 20 Jun 2019 00:27:39 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>, Tanguy Krotoff <https://github.com/tkrotoff>, 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>.
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>.
react/global.d.ts CHANGED
@@ -75,6 +75,7 @@ interface HTMLTableDataCellElement extends HTMLElement { }
75
75
  interface HTMLTableHeaderCellElement extends HTMLElement { }
76
76
  interface HTMLTableRowElement extends HTMLElement { }
77
77
  interface HTMLTableSectionElement extends HTMLElement { }
78
+ interface HTMLTemplateElement extends HTMLElement { }
78
79
  interface HTMLTextAreaElement extends HTMLElement { }
79
80
  interface HTMLTitleElement extends HTMLElement { }
80
81
  interface HTMLTrackElement extends HTMLElement { }
react/index.d.ts CHANGED
@@ -8,7 +8,6 @@
8
8
  // Patricio Zavolinsky <https://github.com/pzavolinsky>
9
9
  // Digiguru <https://github.com/digiguru>
10
10
  // Eric Anderson <https://github.com/ericanderson>
11
- // Tanguy Krotoff <https://github.com/tkrotoff>
12
11
  // Dovydas Navickas <https://github.com/DovydasNavickas>
13
12
  // Stéphane Goetz <https://github.com/onigoetz>
14
13
  // Josh Rutherford <https://github.com/theruther4d>
@@ -22,6 +21,7 @@
22
21
  // Saransh Kataria <https://github.com/saranshkataria>
23
22
  // Kanitkorn Sujautra <https://github.com/lukyth>
24
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
+ // Chris Sauve <https://github.com/lemonmade>
25
25
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
26
26
  // TypeScript Version: 2.8
27
27
 
@@ -805,7 +805,9 @@ declare namespace React {
805
805
  // based on the code in https://github.com/facebook/react/pull/13968
806
806
 
807
807
  // Unlike the class component setState, the updates are not allowed to be partial
808
- type SetStateAction<S> = S | ((prevState: S) => S);
808
+ type SetStateAction<S> = S extends ((...args: any[]) => any) ?
809
+ (prevState: S) => S :
810
+ (S | ((prevState: S) => S));
809
811
  // this technically does accept a second argument, but it's already under a deprecation warning
810
812
  // and it's not even released so probably better to not define it.
811
813
  type Dispatch<A> = (value: A) => void;
@@ -1914,6 +1916,7 @@ declare namespace React {
1914
1916
  marginHeight?: number;
1915
1917
  marginWidth?: number;
1916
1918
  name?: string;
1919
+ referrerPolicy?: string;
1917
1920
  sandbox?: string;
1918
1921
  scrolling?: string;
1919
1922
  seamless?: boolean;
@@ -2593,6 +2596,7 @@ declare namespace React {
2593
2596
  summary: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2594
2597
  sup: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2595
2598
  table: DetailedHTMLFactory<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
2599
+ template: DetailedHTMLFactory<HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>;
2596
2600
  tbody: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
2597
2601
  td: DetailedHTMLFactory<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
2598
2602
  textarea: DetailedHTMLFactory<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
@@ -2925,6 +2929,7 @@ declare global {
2925
2929
  summary: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
2926
2930
  sup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
2927
2931
  table: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
2932
+ template: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>;
2928
2933
  tbody: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
2929
2934
  td: React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
2930
2935
  textarea: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.8.17",
3
+ "version": "16.8.21",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -41,11 +41,6 @@
41
41
  "url": "https://github.com/ericanderson",
42
42
  "githubUsername": "ericanderson"
43
43
  },
44
- {
45
- "name": "Tanguy Krotoff",
46
- "url": "https://github.com/tkrotoff",
47
- "githubUsername": "tkrotoff"
48
- },
49
44
  {
50
45
  "name": "Dovydas Navickas",
51
46
  "url": "https://github.com/DovydasNavickas",
@@ -110,6 +105,11 @@
110
105
  "name": "Sebastian Silbermann",
111
106
  "url": "https://github.com/eps1lon",
112
107
  "githubUsername": "eps1lon"
108
+ },
109
+ {
110
+ "name": "Chris Sauve",
111
+ "url": "https://github.com/lemonmade",
112
+ "githubUsername": "lemonmade"
113
113
  }
114
114
  ],
115
115
  "main": "",
@@ -124,6 +124,6 @@
124
124
  "@types/prop-types": "*",
125
125
  "csstype": "^2.2.0"
126
126
  },
127
- "typesPublisherContentHash": "66cd5c35fa8046ca1a9a132c5892894805ec3ee57c62737d94259aee4270bc57",
127
+ "typesPublisherContentHash": "1b53fe34797cce215d33ead1a08dc8b06fbcbcf3953217b222390bd90f085c33",
128
128
  "typeScriptVersion": "2.8"
129
129
  }