@types/react 16.8.23 → 16.9.1
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 +1 -0
- react/index.d.ts +10 -12
- 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:
|
11
|
+
* Last updated: Fri, 09 Aug 2019 14:20:47 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>,
|
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>, 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/global.d.ts
CHANGED
@@ -34,6 +34,7 @@ interface HTMLBodyElement extends HTMLElement { }
|
|
34
34
|
interface HTMLBRElement extends HTMLElement { }
|
35
35
|
interface HTMLButtonElement extends HTMLElement { }
|
36
36
|
interface HTMLCanvasElement extends HTMLElement { }
|
37
|
+
interface HTMLDataElement extends HTMLElement { }
|
37
38
|
interface HTMLDataListElement extends HTMLElement { }
|
38
39
|
interface HTMLDialogElement extends HTMLElement { }
|
39
40
|
interface HTMLDivElement extends HTMLElement { }
|
react/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Type definitions for React 16.
|
1
|
+
// Type definitions for React 16.9
|
2
2
|
// Project: http://facebook.github.io/react/
|
3
3
|
// Definitions by: Asana <https://asana.com>
|
4
4
|
// AssureSign <http://www.assuresign.com>
|
@@ -9,7 +9,6 @@
|
|
9
9
|
// Digiguru <https://github.com/digiguru>
|
10
10
|
// Eric Anderson <https://github.com/ericanderson>
|
11
11
|
// Dovydas Navickas <https://github.com/DovydasNavickas>
|
12
|
-
// Stéphane Goetz <https://github.com/onigoetz>
|
13
12
|
// Josh Rutherford <https://github.com/theruther4d>
|
14
13
|
// Guilherme Hübner <https://github.com/guilhermehubner>
|
15
14
|
// Ferdy Budhidharma <https://github.com/ferdaber>
|
@@ -349,13 +348,6 @@ declare namespace React {
|
|
349
348
|
|
350
349
|
/** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
|
351
350
|
fallback: NonNullable<ReactNode>|null;
|
352
|
-
|
353
|
-
// I tried looking at the code but I have no idea what it does.
|
354
|
-
// https://github.com/facebook/react/issues/13206#issuecomment-432489986
|
355
|
-
/**
|
356
|
-
* Not implemented yet, requires unstable_ConcurrentMode
|
357
|
-
*/
|
358
|
-
// maxDuration?: number;
|
359
351
|
}
|
360
352
|
/**
|
361
353
|
* This feature is not yet available for server-side rendering.
|
@@ -382,7 +374,7 @@ declare namespace React {
|
|
382
374
|
onRender: ProfilerOnRenderCallback;
|
383
375
|
}
|
384
376
|
|
385
|
-
const
|
377
|
+
const Profiler: ExoticComponent<ProfilerProps>;
|
386
378
|
|
387
379
|
//
|
388
380
|
// Component API
|
@@ -1864,6 +1856,10 @@ declare namespace React {
|
|
1864
1856
|
span?: number;
|
1865
1857
|
}
|
1866
1858
|
|
1859
|
+
interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
|
1860
|
+
value?: string | string[] | number;
|
1861
|
+
}
|
1862
|
+
|
1867
1863
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
1868
1864
|
open?: boolean;
|
1869
1865
|
}
|
@@ -2168,6 +2164,7 @@ declare namespace React {
|
|
2168
2164
|
headers?: string;
|
2169
2165
|
rowSpan?: number;
|
2170
2166
|
scope?: string;
|
2167
|
+
valign?: "top" | "middle" | "bottom" | "baseline";
|
2171
2168
|
}
|
2172
2169
|
|
2173
2170
|
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2195,6 +2192,7 @@ declare namespace React {
|
|
2195
2192
|
playsInline?: boolean;
|
2196
2193
|
poster?: string;
|
2197
2194
|
width?: number | string;
|
2195
|
+
disablePictureInPicture?: boolean;
|
2198
2196
|
}
|
2199
2197
|
|
2200
2198
|
// this list is "complete" in that it contains every SVG attribute
|
@@ -2518,7 +2516,7 @@ declare namespace React {
|
|
2518
2516
|
code: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
2519
2517
|
col: DetailedHTMLFactory<ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
|
2520
2518
|
colgroup: DetailedHTMLFactory<ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
|
2521
|
-
data: DetailedHTMLFactory<
|
2519
|
+
data: DetailedHTMLFactory<DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>;
|
2522
2520
|
datalist: DetailedHTMLFactory<HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
|
2523
2521
|
dd: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
2524
2522
|
del: DetailedHTMLFactory<DelHTMLAttributes<HTMLElement>, HTMLElement>;
|
@@ -2850,7 +2848,7 @@ declare global {
|
|
2850
2848
|
code: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
2851
2849
|
col: React.DetailedHTMLProps<React.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
|
2852
2850
|
colgroup: React.DetailedHTMLProps<React.ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
|
2853
|
-
data: React.DetailedHTMLProps<React.
|
2851
|
+
data: React.DetailedHTMLProps<React.DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>;
|
2854
2852
|
datalist: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
|
2855
2853
|
dd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
2856
2854
|
del: React.DetailedHTMLProps<React.DelHTMLAttributes<HTMLElement>, HTMLElement>;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.
|
3
|
+
"version": "16.9.1",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -46,11 +46,6 @@
|
|
46
46
|
"url": "https://github.com/DovydasNavickas",
|
47
47
|
"githubUsername": "DovydasNavickas"
|
48
48
|
},
|
49
|
-
{
|
50
|
-
"name": "Stéphane Goetz",
|
51
|
-
"url": "https://github.com/onigoetz",
|
52
|
-
"githubUsername": "onigoetz"
|
53
|
-
},
|
54
49
|
{
|
55
50
|
"name": "Josh Rutherford",
|
56
51
|
"url": "https://github.com/theruther4d",
|
@@ -119,6 +114,6 @@
|
|
119
114
|
"@types/prop-types": "*",
|
120
115
|
"csstype": "^2.2.0"
|
121
116
|
},
|
122
|
-
"typesPublisherContentHash": "
|
117
|
+
"typesPublisherContentHash": "aba59b9dbfc42b8c13bfd10bec49502fdc796cfe97e9ad60a8e508f3e9bbbfda",
|
123
118
|
"typeScriptVersion": "2.8"
|
124
119
|
}
|