@types/react 17.0.27 → 17.0.31
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 +4 -2
- react/package.json +2 -2
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: Thu, 21 Oct 2021 02:01:31 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
@@ -83,7 +83,7 @@ declare namespace React {
|
|
83
83
|
|
84
84
|
type JSXElementConstructor<P> =
|
85
85
|
| ((props: P) => ReactElement<any, any> | null)
|
86
|
-
| (new (props: P) => Component<
|
86
|
+
| (new (props: P) => Component<any, any>);
|
87
87
|
|
88
88
|
interface RefObject<T> {
|
89
89
|
readonly current: T | null;
|
@@ -232,7 +232,7 @@ declare namespace React {
|
|
232
232
|
type ReactText = string | number;
|
233
233
|
type ReactChild = ReactElement | ReactText;
|
234
234
|
|
235
|
-
interface ReactNodeArray extends
|
235
|
+
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
236
236
|
type ReactFragment = {} | ReactNodeArray;
|
237
237
|
type ReactNode = ReactChild | ReactFragment | ReactPortal | boolean | null | undefined;
|
238
238
|
|
@@ -2255,6 +2255,7 @@ declare namespace React {
|
|
2255
2255
|
hrefLang?: string | undefined;
|
2256
2256
|
integrity?: string | undefined;
|
2257
2257
|
media?: string | undefined;
|
2258
|
+
imageSrcSet?: string | undefined;
|
2258
2259
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
2259
2260
|
rel?: string | undefined;
|
2260
2261
|
sizes?: string | undefined;
|
@@ -2570,6 +2571,7 @@ declare namespace React {
|
|
2570
2571
|
fontVariant?: number | string | undefined;
|
2571
2572
|
fontWeight?: number | string | undefined;
|
2572
2573
|
format?: number | string | undefined;
|
2574
|
+
fr?: number | string | undefined;
|
2573
2575
|
from?: number | string | undefined;
|
2574
2576
|
fx?: number | string | undefined;
|
2575
2577
|
fy?: number | string | undefined;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.31",
|
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": "
|
149
|
+
"typesPublisherContentHash": "46d24b70b081c9b0db6cb7755869ce75bd336d3e2004ccadc4bc9f9fd5037eba",
|
150
150
|
"typeScriptVersion": "3.7"
|
151
151
|
}
|