@types/react 16.8.13 → 16.8.14
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 +1 -1
- react/index.d.ts +59 -59
- react/package.json +2 -2
react/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React ( http://facebook.github.io/rea
|
|
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, 19 Apr 2019 16:47:25 GMT
|
12
12
|
* Dependencies: @types/csstype, @types/prop-types
|
13
13
|
* Global values: React
|
14
14
|
|
react/index.d.ts
CHANGED
@@ -1447,65 +1447,8 @@ declare namespace React {
|
|
1447
1447
|
*/
|
1448
1448
|
}
|
1449
1449
|
|
1450
|
-
interface HTMLAttributes<T> extends DOMAttributes<T> {
|
1451
|
-
// React-specific Attributes
|
1452
|
-
defaultChecked?: boolean;
|
1453
|
-
defaultValue?: string | string[];
|
1454
|
-
suppressContentEditableWarning?: boolean;
|
1455
|
-
suppressHydrationWarning?: boolean;
|
1456
|
-
|
1457
|
-
// Standard HTML Attributes
|
1458
|
-
accessKey?: string;
|
1459
|
-
className?: string;
|
1460
|
-
contentEditable?: boolean;
|
1461
|
-
contextMenu?: string;
|
1462
|
-
dir?: string;
|
1463
|
-
draggable?: boolean;
|
1464
|
-
hidden?: boolean;
|
1465
|
-
id?: string;
|
1466
|
-
lang?: string;
|
1467
|
-
placeholder?: string;
|
1468
|
-
slot?: string;
|
1469
|
-
spellCheck?: boolean;
|
1470
|
-
style?: CSSProperties;
|
1471
|
-
tabIndex?: number;
|
1472
|
-
title?: string;
|
1473
|
-
|
1474
|
-
// Unknown
|
1475
|
-
inputMode?: string;
|
1476
|
-
is?: string;
|
1477
|
-
radioGroup?: string; // <command>, <menuitem>
|
1478
|
-
|
1479
|
-
// WAI-ARIA
|
1480
|
-
role?: string;
|
1481
|
-
|
1482
|
-
// RDFa Attributes
|
1483
|
-
about?: string;
|
1484
|
-
datatype?: string;
|
1485
|
-
inlist?: any;
|
1486
|
-
prefix?: string;
|
1487
|
-
property?: string;
|
1488
|
-
resource?: string;
|
1489
|
-
typeof?: string;
|
1490
|
-
vocab?: string;
|
1491
|
-
|
1492
|
-
// Non-standard Attributes
|
1493
|
-
autoCapitalize?: string;
|
1494
|
-
autoCorrect?: string;
|
1495
|
-
autoSave?: string;
|
1496
|
-
color?: string;
|
1497
|
-
itemProp?: string;
|
1498
|
-
itemScope?: boolean;
|
1499
|
-
itemType?: string;
|
1500
|
-
itemID?: string;
|
1501
|
-
itemRef?: string;
|
1502
|
-
results?: number;
|
1503
|
-
security?: string;
|
1504
|
-
unselectable?: 'on' | 'off';
|
1505
|
-
}
|
1506
|
-
|
1507
1450
|
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
1508
|
-
interface
|
1451
|
+
interface AriaAttributes {
|
1509
1452
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
1510
1453
|
'aria-activedescendant'?: string;
|
1511
1454
|
/** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
|
@@ -1692,6 +1635,63 @@ declare namespace React {
|
|
1692
1635
|
'aria-valuetext'?: string;
|
1693
1636
|
}
|
1694
1637
|
|
1638
|
+
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
1639
|
+
// React-specific Attributes
|
1640
|
+
defaultChecked?: boolean;
|
1641
|
+
defaultValue?: string | string[];
|
1642
|
+
suppressContentEditableWarning?: boolean;
|
1643
|
+
suppressHydrationWarning?: boolean;
|
1644
|
+
|
1645
|
+
// Standard HTML Attributes
|
1646
|
+
accessKey?: string;
|
1647
|
+
className?: string;
|
1648
|
+
contentEditable?: boolean;
|
1649
|
+
contextMenu?: string;
|
1650
|
+
dir?: string;
|
1651
|
+
draggable?: boolean;
|
1652
|
+
hidden?: boolean;
|
1653
|
+
id?: string;
|
1654
|
+
lang?: string;
|
1655
|
+
placeholder?: string;
|
1656
|
+
slot?: string;
|
1657
|
+
spellCheck?: boolean;
|
1658
|
+
style?: CSSProperties;
|
1659
|
+
tabIndex?: number;
|
1660
|
+
title?: string;
|
1661
|
+
|
1662
|
+
// Unknown
|
1663
|
+
inputMode?: string;
|
1664
|
+
is?: string;
|
1665
|
+
radioGroup?: string; // <command>, <menuitem>
|
1666
|
+
|
1667
|
+
// WAI-ARIA
|
1668
|
+
role?: string;
|
1669
|
+
|
1670
|
+
// RDFa Attributes
|
1671
|
+
about?: string;
|
1672
|
+
datatype?: string;
|
1673
|
+
inlist?: any;
|
1674
|
+
prefix?: string;
|
1675
|
+
property?: string;
|
1676
|
+
resource?: string;
|
1677
|
+
typeof?: string;
|
1678
|
+
vocab?: string;
|
1679
|
+
|
1680
|
+
// Non-standard Attributes
|
1681
|
+
autoCapitalize?: string;
|
1682
|
+
autoCorrect?: string;
|
1683
|
+
autoSave?: string;
|
1684
|
+
color?: string;
|
1685
|
+
itemProp?: string;
|
1686
|
+
itemScope?: boolean;
|
1687
|
+
itemType?: string;
|
1688
|
+
itemID?: string;
|
1689
|
+
itemRef?: string;
|
1690
|
+
results?: number;
|
1691
|
+
security?: string;
|
1692
|
+
unselectable?: 'on' | 'off';
|
1693
|
+
}
|
1694
|
+
|
1695
1695
|
interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
|
1696
1696
|
// Standard HTML Attributes
|
1697
1697
|
accept?: string;
|
@@ -2205,7 +2205,7 @@ declare namespace React {
|
|
2205
2205
|
// - "number | string"
|
2206
2206
|
// - "string"
|
2207
2207
|
// - union of string literals
|
2208
|
-
interface SVGAttributes<T> extends DOMAttributes<T> {
|
2208
|
+
interface SVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
2209
2209
|
// Attributes which also defined in HTMLAttributes
|
2210
2210
|
// See comment in SVGDOMPropertyConfig.js
|
2211
2211
|
className?: string;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.8.
|
3
|
+
"version": "16.8.14",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -129,6 +129,6 @@
|
|
129
129
|
"@types/prop-types": "*",
|
130
130
|
"csstype": "^2.2.0"
|
131
131
|
},
|
132
|
-
"typesPublisherContentHash": "
|
132
|
+
"typesPublisherContentHash": "a4d2e1c6c7a4599311e780c6d66561a65f718b8fd2a7cd66313443a8bb3fef75",
|
133
133
|
"typeScriptVersion": "2.8"
|
134
134
|
}
|