@types/react 16.9.32 → 16.9.36
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/LICENSE +21 -21
- react/README.md +2 -2
- react/experimental.d.ts +3 -3
- react/index.d.ts +15 -13
- react/package.json +13 -3
react/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) Microsoft Corporation.
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
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, 10 Jun 2020 09:08:56 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@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), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil),
|
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), and [Victor Magalhães](https://github.com/vhfmag).
|
react/experimental.d.ts
CHANGED
@@ -92,7 +92,7 @@ declare module '.' {
|
|
92
92
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
93
93
|
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
94
94
|
*/
|
95
|
-
export const
|
95
|
+
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
96
96
|
|
97
97
|
export interface SuspenseConfig extends TimeoutConfig {
|
98
98
|
busyDelayMs?: number;
|
@@ -143,7 +143,7 @@ declare module '.' {
|
|
143
143
|
*
|
144
144
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#usedeferredvalue
|
145
145
|
*/
|
146
|
-
export function
|
146
|
+
export function unstable_useDeferredValue<T>(value: T, config?: TimeoutConfig | null): T;
|
147
147
|
|
148
148
|
/**
|
149
149
|
* Allows components to avoid undesirable loading states by waiting for content to load
|
@@ -162,5 +162,5 @@ declare module '.' {
|
|
162
162
|
*
|
163
163
|
* @see https://reactjs.org/docs/concurrent-mode-reference.html#usetransition
|
164
164
|
*/
|
165
|
-
export function
|
165
|
+
export function unstable_useTransition(config?: SuspenseConfig | null): [TransitionStartFunction, boolean];
|
166
166
|
}
|
react/index.d.ts
CHANGED
@@ -23,6 +23,8 @@
|
|
23
23
|
// Kyle Scully <https://github.com/zieka>
|
24
24
|
// Cong Zhang <https://github.com/dancerphil>
|
25
25
|
// Dimitri Mitropoulos <https://github.com/dimitropoulos>
|
26
|
+
// JongChan Choi <https://github.com/disjukr>
|
27
|
+
// Victor Magalhães <https://github.com/vhfmag>
|
26
28
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
27
29
|
// TypeScript Version: 2.8
|
28
30
|
|
@@ -111,19 +113,16 @@ declare namespace React {
|
|
111
113
|
| { new (props: any): Component<any> }
|
112
114
|
| ((props: any, context?: any) => ReactElement | null)
|
113
115
|
| keyof JSX.IntrinsicElements
|
114
|
-
> =
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
? E
|
125
|
-
: never
|
126
|
-
: never;
|
116
|
+
> =
|
117
|
+
// need to check first if `ref` is a valid prop for ts@3.0
|
118
|
+
// otherwise it will infer `{}` instead of `never`
|
119
|
+
"ref" extends keyof ComponentPropsWithRef<C>
|
120
|
+
? NonNullable<ComponentPropsWithRef<C>["ref"]> extends Ref<
|
121
|
+
infer Instance
|
122
|
+
>
|
123
|
+
? Instance
|
124
|
+
: never
|
125
|
+
: never;
|
127
126
|
|
128
127
|
type ComponentState = any;
|
129
128
|
|
@@ -1179,8 +1178,10 @@ declare namespace React {
|
|
1179
1178
|
interface PointerEvent<T = Element> extends MouseEvent<T, NativePointerEvent> {
|
1180
1179
|
pointerId: number;
|
1181
1180
|
pressure: number;
|
1181
|
+
tangentialPressure: number;
|
1182
1182
|
tiltX: number;
|
1183
1183
|
tiltY: number;
|
1184
|
+
twist: number;
|
1184
1185
|
width: number;
|
1185
1186
|
height: number;
|
1186
1187
|
pointerType: 'mouse' | 'pen' | 'touch';
|
@@ -2126,6 +2127,7 @@ declare namespace React {
|
|
2126
2127
|
rel?: string;
|
2127
2128
|
sizes?: string;
|
2128
2129
|
type?: string;
|
2130
|
+
charSet?: string;
|
2129
2131
|
}
|
2130
2132
|
|
2131
2133
|
interface MapHTMLAttributes<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.36",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -115,6 +115,16 @@
|
|
115
115
|
"name": "Dimitri Mitropoulos",
|
116
116
|
"url": "https://github.com/dimitropoulos",
|
117
117
|
"githubUsername": "dimitropoulos"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"name": "JongChan Choi",
|
121
|
+
"url": "https://github.com/disjukr",
|
122
|
+
"githubUsername": "disjukr"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"name": "Victor Magalhães",
|
126
|
+
"url": "https://github.com/vhfmag",
|
127
|
+
"githubUsername": "vhfmag"
|
118
128
|
}
|
119
129
|
],
|
120
130
|
"main": "",
|
@@ -129,6 +139,6 @@
|
|
129
139
|
"@types/prop-types": "*",
|
130
140
|
"csstype": "^2.2.0"
|
131
141
|
},
|
132
|
-
"typesPublisherContentHash": "
|
133
|
-
"typeScriptVersion": "
|
142
|
+
"typesPublisherContentHash": "a9a771c9ca1959d5f2d2aad48302b48ee78d517dcbe73e31674304f9ed986e0f",
|
143
|
+
"typeScriptVersion": "3.0"
|
134
144
|
}
|