@types/react 16.0.37 → 16.0.41
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 +2 -2
- react/global.d.ts +3 -0
- react/index.d.ts +5 -1
- react/package.json +12 -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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
|
9
9
|
|
10
10
|
Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Sat, 24 Mar 2018 21:31:01 GMT
|
12
12
|
* Dependencies: none
|
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>, Rich Seviora <https://github.com/richseviora>, Josh Rutherford <https://github.com/theruther4d>.
|
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>, Rich Seviora <https://github.com/richseviora>, Josh Rutherford <https://github.com/theruther4d>, Guilherme Hübner <https://github.com/guilhermehubner>, Josh Goldberg <https://github.com/joshuakgoldberg>.
|
react/global.d.ts
CHANGED
@@ -33,6 +33,7 @@ interface HTMLBodyElement extends HTMLElement { }
|
|
33
33
|
interface HTMLBRElement extends HTMLElement { }
|
34
34
|
interface HTMLButtonElement extends HTMLElement { }
|
35
35
|
interface HTMLCanvasElement extends HTMLElement { }
|
36
|
+
interface HTMLDialogElement extends HTMLElement { }
|
36
37
|
interface HTMLDivElement extends HTMLElement { }
|
37
38
|
interface HTMLDListElement extends HTMLElement { }
|
38
39
|
interface HTMLEmbedElement extends HTMLElement { }
|
@@ -175,3 +176,5 @@ interface SVGTextPathElement extends SVGElement { }
|
|
175
176
|
interface SVGTSpanElement extends SVGElement { }
|
176
177
|
interface SVGUseElement extends SVGElement { }
|
177
178
|
interface SVGViewElement extends SVGElement { }
|
179
|
+
|
180
|
+
interface TouchList { }
|
react/index.d.ts
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
// Stéphane Goetz <https://github.com/onigoetz>
|
15
15
|
// Rich Seviora <https://github.com/richseviora>
|
16
16
|
// Josh Rutherford <https://github.com/theruther4d>
|
17
|
+
// Guilherme Hübner <https://github.com/guilhermehubner>
|
18
|
+
// Josh Goldberg <https://github.com/joshuakgoldberg>
|
17
19
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
18
20
|
// TypeScript Version: 2.6
|
19
21
|
|
@@ -284,7 +286,7 @@ declare namespace React {
|
|
284
286
|
// See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
|
285
287
|
// Also, the ` | S` allows intellisense to not be dumbisense
|
286
288
|
setState<K extends keyof S>(
|
287
|
-
state: ((prevState: Readonly<S>, props: P) => (Pick<S, K> | S)) | (Pick<S, K> | S),
|
289
|
+
state: ((prevState: Readonly<S>, props: P) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
|
288
290
|
callback?: () => void
|
289
291
|
): void;
|
290
292
|
|
@@ -479,6 +481,7 @@ declare namespace React {
|
|
479
481
|
interface FocusEvent<T> extends SyntheticEvent<T> {
|
480
482
|
nativeEvent: NativeFocusEvent;
|
481
483
|
relatedTarget: EventTarget;
|
484
|
+
target: EventTarget & T;
|
482
485
|
}
|
483
486
|
|
484
487
|
// tslint:disable-next-line:no-empty-interface
|
@@ -2913,6 +2916,7 @@ declare namespace React {
|
|
2913
2916
|
|
2914
2917
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
2915
2918
|
alt?: string;
|
2919
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
2916
2920
|
height?: number | string;
|
2917
2921
|
sizes?: string;
|
2918
2922
|
src?: string;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.0.
|
3
|
+
"version": "16.0.41",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -70,6 +70,16 @@
|
|
70
70
|
"name": "Josh Rutherford",
|
71
71
|
"url": "https://github.com/theruther4d",
|
72
72
|
"githubUsername": "theruther4d"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "Guilherme Hübner",
|
76
|
+
"url": "https://github.com/guilhermehubner",
|
77
|
+
"githubUsername": "guilhermehubner"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"name": "Josh Goldberg",
|
81
|
+
"url": "https://github.com/joshuakgoldberg",
|
82
|
+
"githubUsername": "joshuakgoldberg"
|
73
83
|
}
|
74
84
|
],
|
75
85
|
"main": "",
|
@@ -79,6 +89,6 @@
|
|
79
89
|
},
|
80
90
|
"scripts": {},
|
81
91
|
"dependencies": {},
|
82
|
-
"typesPublisherContentHash": "
|
92
|
+
"typesPublisherContentHash": "d4e4c0762e84a945445c413d12366f931fbe93bd571805e13d0afff7ab96406d",
|
83
93
|
"typeScriptVersion": "2.6"
|
84
94
|
}
|