@types/react 16.14.4 → 16.14.8
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 v16.14/LICENSE +0 -0
- react v16.14/README.md +3 -3
- react v16.14/global.d.ts +0 -0
- react v16.14/index.d.ts +78 -15
- react v16.14/jsx-dev-runtime.d.ts +0 -0
- react v16.14/jsx-runtime.d.ts +0 -0
- react v16.14/package.json +9 -3
react v16.14/LICENSE
CHANGED
File without changes
|
react v16.14/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/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
12
|
-
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types)
|
11
|
+
* Last updated: Wed, 26 May 2021 00:31:36 GMT
|
12
|
+
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
|
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), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag),
|
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), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Dale Tan](https://github.com/hellatan), and [Priyanshu Rav](https://github.com/priyanshurav).
|
react v16.14/global.d.ts
CHANGED
File without changes
|
react v16.14/index.d.ts
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
// JongChan Choi <https://github.com/disjukr>
|
27
27
|
// Victor Magalhães <https://github.com/vhfmag>
|
28
28
|
// Dale Tan <https://github.com/hellatan>
|
29
|
+
// Priyanshu Rav <https://github.com/priyanshurav>
|
29
30
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
30
31
|
// TypeScript Version: 2.8
|
31
32
|
|
@@ -37,6 +38,7 @@
|
|
37
38
|
|
38
39
|
import * as CSS from 'csstype';
|
39
40
|
import * as PropTypes from 'prop-types';
|
41
|
+
import { Interaction as SchedulerInteraction } from 'scheduler/tracing';
|
40
42
|
|
41
43
|
type NativeAnimationEvent = AnimationEvent;
|
42
44
|
type NativeClipboardEvent = ClipboardEvent;
|
@@ -52,15 +54,6 @@ type NativeUIEvent = UIEvent;
|
|
52
54
|
type NativeWheelEvent = WheelEvent;
|
53
55
|
type Booleanish = boolean | 'true' | 'false';
|
54
56
|
|
55
|
-
/**
|
56
|
-
* defined in scheduler/tracing
|
57
|
-
*/
|
58
|
-
interface SchedulerInteraction {
|
59
|
-
id: number;
|
60
|
-
name: string;
|
61
|
-
timestamp: number;
|
62
|
-
}
|
63
|
-
|
64
57
|
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
65
58
|
// Destructors are only allowed to return void.
|
66
59
|
type Destructor = () => void | { [UNDEFINED_VOID_ONLY]: never };
|
@@ -409,7 +402,7 @@ declare namespace React {
|
|
409
402
|
const version: string;
|
410
403
|
|
411
404
|
/**
|
412
|
-
* {@link https://
|
405
|
+
* {@link https://reactjs.org/docs/profiler.html#onrender-callback Profiler API}
|
413
406
|
*/
|
414
407
|
type ProfilerOnRenderCallback = (
|
415
408
|
id: string,
|
@@ -1027,7 +1020,6 @@ declare namespace React {
|
|
1027
1020
|
* @version 16.8.0
|
1028
1021
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1029
1022
|
*/
|
1030
|
-
// TODO (TypeScript 3.0): <T extends unknown>
|
1031
1023
|
function useRef<T>(initialValue: T): MutableRefObject<T>;
|
1032
1024
|
// convenience overload for refs given as a ref prop as they typically start with a null value
|
1033
1025
|
/**
|
@@ -1043,7 +1035,6 @@ declare namespace React {
|
|
1043
1035
|
* @version 16.8.0
|
1044
1036
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1045
1037
|
*/
|
1046
|
-
// TODO (TypeScript 3.0): <T extends unknown>
|
1047
1038
|
function useRef<T>(initialValue: T|null): RefObject<T>;
|
1048
1039
|
// convenience overload for potentially undefined initialValue / call with 0 arguments
|
1049
1040
|
// has a default to stop it from defaulting to {} instead
|
@@ -1057,7 +1048,6 @@ declare namespace React {
|
|
1057
1048
|
* @version 16.8.0
|
1058
1049
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1059
1050
|
*/
|
1060
|
-
// TODO (TypeScript 3.0): <T extends unknown>
|
1061
1051
|
function useRef<T = undefined>(): MutableRefObject<T | undefined>;
|
1062
1052
|
/**
|
1063
1053
|
* The signature is identical to `useEffect`, but it fires synchronously after all DOM mutations.
|
@@ -1746,6 +1736,79 @@ declare namespace React {
|
|
1746
1736
|
'aria-valuetext'?: string;
|
1747
1737
|
}
|
1748
1738
|
|
1739
|
+
// All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
|
1740
|
+
type AriaRole =
|
1741
|
+
| 'alert'
|
1742
|
+
| 'alertdialog'
|
1743
|
+
| 'application'
|
1744
|
+
| 'article'
|
1745
|
+
| 'banner'
|
1746
|
+
| 'button'
|
1747
|
+
| 'cell'
|
1748
|
+
| 'checkbox'
|
1749
|
+
| 'columnheader'
|
1750
|
+
| 'combobox'
|
1751
|
+
| 'complementary'
|
1752
|
+
| 'contentinfo'
|
1753
|
+
| 'definition'
|
1754
|
+
| 'dialog'
|
1755
|
+
| 'directory'
|
1756
|
+
| 'document'
|
1757
|
+
| 'feed'
|
1758
|
+
| 'figure'
|
1759
|
+
| 'form'
|
1760
|
+
| 'grid'
|
1761
|
+
| 'gridcell'
|
1762
|
+
| 'group'
|
1763
|
+
| 'heading'
|
1764
|
+
| 'img'
|
1765
|
+
| 'link'
|
1766
|
+
| 'list'
|
1767
|
+
| 'listbox'
|
1768
|
+
| 'listitem'
|
1769
|
+
| 'log'
|
1770
|
+
| 'main'
|
1771
|
+
| 'marquee'
|
1772
|
+
| 'math'
|
1773
|
+
| 'menu'
|
1774
|
+
| 'menubar'
|
1775
|
+
| 'menuitem'
|
1776
|
+
| 'menuitemcheckbox'
|
1777
|
+
| 'menuitemradio'
|
1778
|
+
| 'navigation'
|
1779
|
+
| 'none'
|
1780
|
+
| 'note'
|
1781
|
+
| 'option'
|
1782
|
+
| 'presentation'
|
1783
|
+
| 'progressbar'
|
1784
|
+
| 'radio'
|
1785
|
+
| 'radiogroup'
|
1786
|
+
| 'region'
|
1787
|
+
| 'row'
|
1788
|
+
| 'rowgroup'
|
1789
|
+
| 'rowheader'
|
1790
|
+
| 'scrollbar'
|
1791
|
+
| 'search'
|
1792
|
+
| 'searchbox'
|
1793
|
+
| 'separator'
|
1794
|
+
| 'slider'
|
1795
|
+
| 'spinbutton'
|
1796
|
+
| 'status'
|
1797
|
+
| 'switch'
|
1798
|
+
| 'tab'
|
1799
|
+
| 'table'
|
1800
|
+
| 'tablist'
|
1801
|
+
| 'tabpanel'
|
1802
|
+
| 'term'
|
1803
|
+
| 'textbox'
|
1804
|
+
| 'timer'
|
1805
|
+
| 'toolbar'
|
1806
|
+
| 'tooltip'
|
1807
|
+
| 'tree'
|
1808
|
+
| 'treegrid'
|
1809
|
+
| 'treeitem'
|
1810
|
+
| (string & {});
|
1811
|
+
|
1749
1812
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
1750
1813
|
// React-specific Attributes
|
1751
1814
|
defaultChecked?: boolean;
|
@@ -1775,7 +1838,7 @@ declare namespace React {
|
|
1775
1838
|
radioGroup?: string; // <command>, <menuitem>
|
1776
1839
|
|
1777
1840
|
// WAI-ARIA
|
1778
|
-
role?:
|
1841
|
+
role?: AriaRole;
|
1779
1842
|
|
1780
1843
|
// RDFa Attributes
|
1781
1844
|
about?: string;
|
@@ -2387,7 +2450,7 @@ declare namespace React {
|
|
2387
2450
|
width?: number | string;
|
2388
2451
|
|
2389
2452
|
// Other HTML properties supported by SVG elements in browsers
|
2390
|
-
role?:
|
2453
|
+
role?: AriaRole;
|
2391
2454
|
tabIndex?: number;
|
2392
2455
|
crossOrigin?: "anonymous" | "use-credentials" | "";
|
2393
2456
|
|
File without changes
|
react v16.14/jsx-runtime.d.ts
CHANGED
File without changes
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
3
|
+
"version": "16.14.8",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -130,6 +130,11 @@
|
|
130
130
|
"name": "Dale Tan",
|
131
131
|
"url": "https://github.com/hellatan",
|
132
132
|
"githubUsername": "hellatan"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"name": "Priyanshu Rav",
|
136
|
+
"url": "https://github.com/priyanshurav",
|
137
|
+
"githubUsername": "priyanshurav"
|
133
138
|
}
|
134
139
|
],
|
135
140
|
"main": "",
|
@@ -142,8 +147,9 @@
|
|
142
147
|
"scripts": {},
|
143
148
|
"dependencies": {
|
144
149
|
"@types/prop-types": "*",
|
150
|
+
"@types/scheduler": "*",
|
145
151
|
"csstype": "^3.0.2"
|
146
152
|
},
|
147
|
-
"typesPublisherContentHash": "
|
148
|
-
"typeScriptVersion": "3.
|
153
|
+
"typesPublisherContentHash": "81be67ad84ac197a74f022991b15c925110e5eb8c6b26668be83260519d5d944",
|
154
|
+
"typeScriptVersion": "3.5"
|
149
155
|
}
|