@types/react 17.0.19 → 17.0.20
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 +26 -1
- react/package.json +3 -3
react/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Sun, 05 Sep 2021 10:01:23 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/index.d.ts
CHANGED
@@ -2167,6 +2167,31 @@ declare namespace React {
|
|
2167
2167
|
dateTime?: string | undefined;
|
2168
2168
|
}
|
2169
2169
|
|
2170
|
+
type HTMLInputTypeAttribute =
|
2171
|
+
| 'button'
|
2172
|
+
| 'checkbox'
|
2173
|
+
| 'color'
|
2174
|
+
| 'date'
|
2175
|
+
| 'datetime-local'
|
2176
|
+
| 'email'
|
2177
|
+
| 'file'
|
2178
|
+
| 'hidden'
|
2179
|
+
| 'image'
|
2180
|
+
| 'month'
|
2181
|
+
| 'number'
|
2182
|
+
| 'password'
|
2183
|
+
| 'radio'
|
2184
|
+
| 'range'
|
2185
|
+
| 'reset'
|
2186
|
+
| 'search'
|
2187
|
+
| 'submit'
|
2188
|
+
| 'tel'
|
2189
|
+
| 'text'
|
2190
|
+
| 'time'
|
2191
|
+
| 'url'
|
2192
|
+
| 'week'
|
2193
|
+
| (string & {});
|
2194
|
+
|
2170
2195
|
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
2171
2196
|
accept?: string | undefined;
|
2172
2197
|
alt?: string | undefined;
|
@@ -2198,7 +2223,7 @@ declare namespace React {
|
|
2198
2223
|
size?: number | undefined;
|
2199
2224
|
src?: string | undefined;
|
2200
2225
|
step?: number | string | undefined;
|
2201
|
-
type?:
|
2226
|
+
type?: HTMLInputTypeAttribute | undefined;
|
2202
2227
|
value?: string | ReadonlyArray<string> | number | undefined;
|
2203
2228
|
width?: number | string | undefined;
|
2204
2229
|
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.20",
|
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": "b98539428aeb48bb4b954672f744bccb907e1934aa7ce9a24589803ca068a20f",
|
150
|
+
"typeScriptVersion": "3.7"
|
151
151
|
}
|