@types/react 16.4.2 → 16.4.6

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 +17 -2
  3. react/package.json +7 -2
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: Tue, 26 Jun 2018 01:10:51 GMT
11
+ * Last updated: Sat, 30 Jun 2018 02:47:51 GMT
12
12
  * Dependencies: csstype
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>, Albert Kurniawan <https://github.com/morcerf>, 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>.
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>, Albert Kurniawan <https://github.com/morcerf>, 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>.
react/index.d.ts CHANGED
@@ -17,6 +17,7 @@
17
17
  // Ferdy Budhidharma <https://github.com/ferdaber>
18
18
  // Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
19
19
  // Olivier Pascal <https://github.com/pascaloliv>
20
+ // Martin Hochel <https://github.com/hotell>
20
21
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
21
22
  // TypeScript Version: 2.6
22
23
 
@@ -281,13 +282,18 @@ declare namespace React {
281
282
  // tslint:disable-next-line:no-empty-interface
282
283
  interface Component<P = {}, S = {}, SS = any> extends ComponentLifecycle<P, S, SS> { }
283
284
  class Component<P, S> {
285
+ constructor(props: Readonly<P>);
286
+ /**
287
+ * @deprecated
288
+ * https://reactjs.org/docs/legacy-context.html
289
+ */
284
290
  constructor(props: P, context?: any);
285
291
 
286
292
  // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
287
293
  // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
288
294
  // Also, the ` | S` allows intellisense to not be dumbisense
289
295
  setState<K extends keyof S>(
290
- state: ((prevState: Readonly<S>, props: P) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
296
+ state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
291
297
  callback?: () => void
292
298
  ): void;
293
299
 
@@ -299,9 +305,17 @@ declare namespace React {
299
305
  // always pass children as variadic arguments to `createElement`.
300
306
  // In the future, if we can define its call signature conditionally
301
307
  // on the existence of `children` in `P`, then we should remove this.
302
- props: Readonly<{ children?: ReactNode }> & Readonly<P>;
308
+ readonly props: Readonly<{ children?: ReactNode }> & Readonly<P>;
303
309
  state: Readonly<S>;
310
+ /**
311
+ * @deprecated
312
+ * https://reactjs.org/docs/legacy-context.html
313
+ */
304
314
  context: any;
315
+ /**
316
+ * @deprecated
317
+ * https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs
318
+ */
305
319
  refs: {
306
320
  [key: string]: ReactInstance
307
321
  };
@@ -1626,6 +1640,7 @@ declare namespace React {
1626
1640
  }
1627
1641
 
1628
1642
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1643
+ autoComplete?: string;
1629
1644
  autoFocus?: boolean;
1630
1645
  disabled?: boolean;
1631
1646
  form?: string;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.4.2",
3
+ "version": "16.4.6",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -85,6 +85,11 @@
85
85
  "name": "Olivier Pascal",
86
86
  "url": "https://github.com/pascaloliv",
87
87
  "githubUsername": "pascaloliv"
88
+ },
89
+ {
90
+ "name": "Martin Hochel",
91
+ "url": "https://github.com/hotell",
92
+ "githubUsername": "hotell"
88
93
  }
89
94
  ],
90
95
  "main": "",
@@ -96,6 +101,6 @@
96
101
  "dependencies": {
97
102
  "csstype": "^2.2.0"
98
103
  },
99
- "typesPublisherContentHash": "cf5c010d8993cc1b36e1741917e4292a0e6ac136f0798164ec79185c0c8bf2d0",
104
+ "typesPublisherContentHash": "2eae3a080b6dea719f50e3e92e73e9d1aec14ec358ea32d9efc693fed21d5e4b",
100
105
  "typeScriptVersion": "2.6"
101
106
  }