@types/react 16.9.5 → 16.9.9
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/index.d.ts +21 -6
- 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:
|
11
|
+
* Last updated: Wed, 16 Oct 2019 18:09:53 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>, 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>,
|
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>, Sebastian Silbermann <https://github.com/eps1lon>, and Kyle Scully <https://github.com/zieka>.
|
react/index.d.ts
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
// Saransh Kataria <https://github.com/saranshkataria>
|
21
21
|
// Kanitkorn Sujautra <https://github.com/lukyth>
|
22
22
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
23
|
+
// Kyle Scully <https://github.com/zieka>
|
23
24
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
24
25
|
// TypeScript Version: 2.8
|
25
26
|
|
@@ -85,6 +86,10 @@ declare namespace React {
|
|
85
86
|
|
86
87
|
type ComponentState = any;
|
87
88
|
|
89
|
+
/**
|
90
|
+
* @internal You shouldn't need to use this type since you never see these attributes
|
91
|
+
* inside your component or have to validate them.
|
92
|
+
*/
|
88
93
|
interface Attributes {
|
89
94
|
key?: Key;
|
90
95
|
}
|
@@ -412,6 +417,7 @@ declare namespace React {
|
|
412
417
|
/**
|
413
418
|
* If using the new style context, re-declare this in your class to be the
|
414
419
|
* `React.ContextType` of your `static contextType`.
|
420
|
+
* Should be used with type annotation or static contextType.
|
415
421
|
*
|
416
422
|
* ```ts
|
417
423
|
* static contextType = MyContext
|
@@ -421,8 +427,7 @@ declare namespace React {
|
|
421
427
|
* declare context: React.ContextType<typeof MyContext>
|
422
428
|
* ```
|
423
429
|
*
|
424
|
-
* @
|
425
|
-
* @see https://reactjs.org/docs/legacy-context.html
|
430
|
+
* @see https://reactjs.org/docs/context.html
|
426
431
|
*/
|
427
432
|
// TODO (TypeScript 3.0): unknown
|
428
433
|
context: any;
|
@@ -1081,7 +1086,7 @@ declare namespace React {
|
|
1081
1086
|
}
|
1082
1087
|
|
1083
1088
|
interface FocusEvent<T = Element> extends SyntheticEvent<T, NativeFocusEvent> {
|
1084
|
-
relatedTarget: EventTarget;
|
1089
|
+
relatedTarget: EventTarget | null;
|
1085
1090
|
target: EventTarget & T;
|
1086
1091
|
}
|
1087
1092
|
|
@@ -1134,7 +1139,7 @@ declare namespace React {
|
|
1134
1139
|
movementY: number;
|
1135
1140
|
pageX: number;
|
1136
1141
|
pageY: number;
|
1137
|
-
relatedTarget: EventTarget;
|
1142
|
+
relatedTarget: EventTarget | null;
|
1138
1143
|
screenX: number;
|
1139
1144
|
screenY: number;
|
1140
1145
|
shiftKey: boolean;
|
@@ -1654,8 +1659,6 @@ declare namespace React {
|
|
1654
1659
|
title?: string;
|
1655
1660
|
|
1656
1661
|
// Unknown
|
1657
|
-
inputMode?: string;
|
1658
|
-
is?: string;
|
1659
1662
|
radioGroup?: string; // <command>, <menuitem>
|
1660
1663
|
|
1661
1664
|
// WAI-ARIA
|
@@ -1684,6 +1687,18 @@ declare namespace React {
|
|
1684
1687
|
results?: number;
|
1685
1688
|
security?: string;
|
1686
1689
|
unselectable?: 'on' | 'off';
|
1690
|
+
|
1691
|
+
// Living Standard
|
1692
|
+
/**
|
1693
|
+
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
1694
|
+
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
|
1695
|
+
*/
|
1696
|
+
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
1697
|
+
/**
|
1698
|
+
* Specify that a standard HTML element should behave like a defined custom built-in element
|
1699
|
+
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
|
1700
|
+
*/
|
1701
|
+
is?: string;
|
1687
1702
|
}
|
1688
1703
|
|
1689
1704
|
interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.9",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -100,6 +100,11 @@
|
|
100
100
|
"name": "Sebastian Silbermann",
|
101
101
|
"url": "https://github.com/eps1lon",
|
102
102
|
"githubUsername": "eps1lon"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"name": "Kyle Scully",
|
106
|
+
"url": "https://github.com/zieka",
|
107
|
+
"githubUsername": "zieka"
|
103
108
|
}
|
104
109
|
],
|
105
110
|
"main": "",
|
@@ -114,6 +119,6 @@
|
|
114
119
|
"@types/prop-types": "*",
|
115
120
|
"csstype": "^2.2.0"
|
116
121
|
},
|
117
|
-
"typesPublisherContentHash": "
|
122
|
+
"typesPublisherContentHash": "7de3d69e84f5af61b3bc760bd4f2a18634fcbf57e7bf7cc4e0306aadb498307e",
|
118
123
|
"typeScriptVersion": "2.8"
|
119
124
|
}
|