@types/react 16.14.14 → 16.14.18
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/README.md +1 -1
- react v16.14/index.d.ts +31 -5
- react v16.14/package.json +3 -3
react v16.14/README.md
CHANGED
@@ -8,7 +8,7 @@ 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: Thu,
|
11
|
+
* Last updated: Thu, 21 Oct 2021 02:01:32 GMT
|
12
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
|
|
react v16.14/index.d.ts
CHANGED
@@ -79,7 +79,7 @@ declare namespace React {
|
|
79
79
|
|
80
80
|
type JSXElementConstructor<P> =
|
81
81
|
| ((props: P) => ReactElement<any, any> | null)
|
82
|
-
| (new (props: P) => Component<
|
82
|
+
| (new (props: P) => Component<any, any>);
|
83
83
|
|
84
84
|
interface RefObject<T> {
|
85
85
|
readonly current: T | null;
|
@@ -1191,9 +1191,9 @@ declare namespace React {
|
|
1191
1191
|
isPrimary: boolean;
|
1192
1192
|
}
|
1193
1193
|
|
1194
|
-
interface FocusEvent<
|
1195
|
-
relatedTarget: EventTarget | null;
|
1196
|
-
target: EventTarget &
|
1194
|
+
interface FocusEvent<Target = Element, RelatedTarget = Element> extends SyntheticEvent<Target, NativeFocusEvent> {
|
1195
|
+
relatedTarget: (EventTarget & RelatedTarget) | null;
|
1196
|
+
target: EventTarget & Target;
|
1197
1197
|
}
|
1198
1198
|
|
1199
1199
|
// tslint:disable-next-line:no-empty-interface
|
@@ -2165,6 +2165,31 @@ declare namespace React {
|
|
2165
2165
|
dateTime?: string | undefined;
|
2166
2166
|
}
|
2167
2167
|
|
2168
|
+
type HTMLInputTypeAttribute =
|
2169
|
+
| 'button'
|
2170
|
+
| 'checkbox'
|
2171
|
+
| 'color'
|
2172
|
+
| 'date'
|
2173
|
+
| 'datetime-local'
|
2174
|
+
| 'email'
|
2175
|
+
| 'file'
|
2176
|
+
| 'hidden'
|
2177
|
+
| 'image'
|
2178
|
+
| 'month'
|
2179
|
+
| 'number'
|
2180
|
+
| 'password'
|
2181
|
+
| 'radio'
|
2182
|
+
| 'range'
|
2183
|
+
| 'reset'
|
2184
|
+
| 'search'
|
2185
|
+
| 'submit'
|
2186
|
+
| 'tel'
|
2187
|
+
| 'text'
|
2188
|
+
| 'time'
|
2189
|
+
| 'url'
|
2190
|
+
| 'week'
|
2191
|
+
| (string & {});
|
2192
|
+
|
2168
2193
|
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
2169
2194
|
accept?: string | undefined;
|
2170
2195
|
alt?: string | undefined;
|
@@ -2195,7 +2220,7 @@ declare namespace React {
|
|
2195
2220
|
size?: number | undefined;
|
2196
2221
|
src?: string | undefined;
|
2197
2222
|
step?: number | string | undefined;
|
2198
|
-
type?:
|
2223
|
+
type?: HTMLInputTypeAttribute | undefined;
|
2199
2224
|
value?: string | ReadonlyArray<string> | number | undefined;
|
2200
2225
|
width?: number | string | undefined;
|
2201
2226
|
|
@@ -2542,6 +2567,7 @@ declare namespace React {
|
|
2542
2567
|
fontVariant?: number | string | undefined;
|
2543
2568
|
fontWeight?: number | string | undefined;
|
2544
2569
|
format?: number | string | undefined;
|
2570
|
+
fr?: number | string | undefined;
|
2545
2571
|
from?: number | string | undefined;
|
2546
2572
|
fx?: number | string | undefined;
|
2547
2573
|
fy?: number | string | undefined;
|
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.18",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,6 +146,6 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
150
|
-
"typeScriptVersion": "3.
|
149
|
+
"typesPublisherContentHash": "07dd37052656d009f9c08626e97c86fdeec59567d542d7aa095cc95e52a26efa",
|
150
|
+
"typeScriptVersion": "3.7"
|
151
151
|
}
|