@types/react 16.9.34 → 16.9.38
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 +26 -25
- react/package.json +8 -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, 17 Jun 2020 14:55:18 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), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr),
|
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), and [Dale Tan](https://github.com/hellatan).
|
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
@@ -25,6 +25,7 @@
|
|
25
25
|
// Dimitri Mitropoulos <https://github.com/dimitropoulos>
|
26
26
|
// JongChan Choi <https://github.com/disjukr>
|
27
27
|
// Victor Magalhães <https://github.com/vhfmag>
|
28
|
+
// Dale Tan <https://github.com/hellatan>
|
28
29
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
29
30
|
// TypeScript Version: 2.8
|
30
31
|
|
@@ -113,19 +114,16 @@ declare namespace React {
|
|
113
114
|
| { new (props: any): Component<any> }
|
114
115
|
| ((props: any, context?: any) => ReactElement | null)
|
115
116
|
| keyof JSX.IntrinsicElements
|
116
|
-
> =
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
? E
|
127
|
-
: never
|
128
|
-
: never;
|
117
|
+
> =
|
118
|
+
// need to check first if `ref` is a valid prop for ts@3.0
|
119
|
+
// otherwise it will infer `{}` instead of `never`
|
120
|
+
"ref" extends keyof ComponentPropsWithRef<C>
|
121
|
+
? NonNullable<ComponentPropsWithRef<C>["ref"]> extends Ref<
|
122
|
+
infer Instance
|
123
|
+
>
|
124
|
+
? Instance
|
125
|
+
: never
|
126
|
+
: never;
|
129
127
|
|
130
128
|
type ComponentState = any;
|
131
129
|
|
@@ -1743,7 +1741,7 @@ declare namespace React {
|
|
1743
1741
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
1744
1742
|
// React-specific Attributes
|
1745
1743
|
defaultChecked?: boolean;
|
1746
|
-
defaultValue?: string | number | string
|
1744
|
+
defaultValue?: string | number | ReadonlyArray<string>;
|
1747
1745
|
suppressContentEditableWarning?: boolean;
|
1748
1746
|
suppressHydrationWarning?: boolean;
|
1749
1747
|
|
@@ -1912,7 +1910,7 @@ declare namespace React {
|
|
1912
1910
|
target?: string;
|
1913
1911
|
type?: string;
|
1914
1912
|
useMap?: string;
|
1915
|
-
value?: string | string
|
1913
|
+
value?: string | ReadonlyArray<string> | number;
|
1916
1914
|
width?: number | string;
|
1917
1915
|
wmode?: string;
|
1918
1916
|
wrap?: string;
|
@@ -1965,7 +1963,7 @@ declare namespace React {
|
|
1965
1963
|
formTarget?: string;
|
1966
1964
|
name?: string;
|
1967
1965
|
type?: 'submit' | 'reset' | 'button';
|
1968
|
-
value?: string | string
|
1966
|
+
value?: string | ReadonlyArray<string> | number;
|
1969
1967
|
}
|
1970
1968
|
|
1971
1969
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -1983,7 +1981,7 @@ declare namespace React {
|
|
1983
1981
|
}
|
1984
1982
|
|
1985
1983
|
interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
|
1986
|
-
value?: string | string
|
1984
|
+
value?: string | ReadonlyArray<string> | number;
|
1987
1985
|
}
|
1988
1986
|
|
1989
1987
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2095,7 +2093,7 @@ declare namespace React {
|
|
2095
2093
|
src?: string;
|
2096
2094
|
step?: number | string;
|
2097
2095
|
type?: string;
|
2098
|
-
value?: string | string
|
2096
|
+
value?: string | ReadonlyArray<string> | number;
|
2099
2097
|
width?: number | string;
|
2100
2098
|
|
2101
2099
|
onChange?: ChangeEventHandler<T>;
|
@@ -2117,7 +2115,7 @@ declare namespace React {
|
|
2117
2115
|
}
|
2118
2116
|
|
2119
2117
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
2120
|
-
value?: string | string
|
2118
|
+
value?: string | ReadonlyArray<string> | number;
|
2121
2119
|
}
|
2122
2120
|
|
2123
2121
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2168,7 +2166,7 @@ declare namespace React {
|
|
2168
2166
|
max?: number | string;
|
2169
2167
|
min?: number | string;
|
2170
2168
|
optimum?: number;
|
2171
|
-
value?: string | string
|
2169
|
+
value?: string | ReadonlyArray<string> | number;
|
2172
2170
|
}
|
2173
2171
|
|
2174
2172
|
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2202,7 +2200,7 @@ declare namespace React {
|
|
2202
2200
|
disabled?: boolean;
|
2203
2201
|
label?: string;
|
2204
2202
|
selected?: boolean;
|
2205
|
-
value?: string | string
|
2203
|
+
value?: string | ReadonlyArray<string> | number;
|
2206
2204
|
}
|
2207
2205
|
|
2208
2206
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2213,12 +2211,12 @@ declare namespace React {
|
|
2213
2211
|
|
2214
2212
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
2215
2213
|
name?: string;
|
2216
|
-
value?: string | string
|
2214
|
+
value?: string | ReadonlyArray<string> | number;
|
2217
2215
|
}
|
2218
2216
|
|
2219
2217
|
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
2220
2218
|
max?: number | string;
|
2221
|
-
value?: string | string
|
2219
|
+
value?: string | ReadonlyArray<string> | number;
|
2222
2220
|
}
|
2223
2221
|
|
2224
2222
|
interface SlotHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2246,7 +2244,7 @@ declare namespace React {
|
|
2246
2244
|
name?: string;
|
2247
2245
|
required?: boolean;
|
2248
2246
|
size?: number;
|
2249
|
-
value?: string | string
|
2247
|
+
value?: string | ReadonlyArray<string> | number;
|
2250
2248
|
onChange?: ChangeEventHandler<T>;
|
2251
2249
|
}
|
2252
2250
|
|
@@ -2269,6 +2267,7 @@ declare namespace React {
|
|
2269
2267
|
cellPadding?: number | string;
|
2270
2268
|
cellSpacing?: number | string;
|
2271
2269
|
summary?: string;
|
2270
|
+
width?: number | string;
|
2272
2271
|
}
|
2273
2272
|
|
2274
2273
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -2285,7 +2284,7 @@ declare namespace React {
|
|
2285
2284
|
readOnly?: boolean;
|
2286
2285
|
required?: boolean;
|
2287
2286
|
rows?: number;
|
2288
|
-
value?: string | string
|
2287
|
+
value?: string | ReadonlyArray<string> | number;
|
2289
2288
|
wrap?: string;
|
2290
2289
|
|
2291
2290
|
onChange?: ChangeEventHandler<T>;
|
@@ -2298,6 +2297,8 @@ declare namespace React {
|
|
2298
2297
|
rowSpan?: number;
|
2299
2298
|
scope?: string;
|
2300
2299
|
abbr?: string;
|
2300
|
+
height?: number | string;
|
2301
|
+
width?: number | string;
|
2301
2302
|
valign?: "top" | "middle" | "bottom" | "baseline";
|
2302
2303
|
}
|
2303
2304
|
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.38",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -125,6 +125,11 @@
|
|
125
125
|
"name": "Victor Magalhães",
|
126
126
|
"url": "https://github.com/vhfmag",
|
127
127
|
"githubUsername": "vhfmag"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"name": "Dale Tan",
|
131
|
+
"url": "https://github.com/hellatan",
|
132
|
+
"githubUsername": "hellatan"
|
128
133
|
}
|
129
134
|
],
|
130
135
|
"main": "",
|
@@ -139,6 +144,6 @@
|
|
139
144
|
"@types/prop-types": "*",
|
140
145
|
"csstype": "^2.2.0"
|
141
146
|
},
|
142
|
-
"typesPublisherContentHash": "
|
143
|
-
"typeScriptVersion": "
|
147
|
+
"typesPublisherContentHash": "8b1a29657ff80c709ef195b7c494d795a1cc3d980b1702119df17595b838d6a3",
|
148
|
+
"typeScriptVersion": "3.0"
|
144
149
|
}
|