@types/react 18.0.5 → 18.0.8
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 +9 -7
- react/package.json +12 -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: Tue, 26 Apr 2022 19:01:47 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
@@ -213,20 +213,21 @@ declare namespace React {
|
|
213
213
|
(props?: ClassAttributes<SVGElement> & SVGAttributes<SVGElement> | null, ...children: ReactNode[]): ReactSVGElement;
|
214
214
|
}
|
215
215
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
// ----------------------------------------------------------------------
|
220
|
-
|
216
|
+
/**
|
217
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
218
|
+
*/
|
221
219
|
type ReactText = string | number;
|
222
|
-
|
220
|
+
/**
|
221
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
222
|
+
*/
|
223
|
+
type ReactChild = ReactElement | string | number;
|
223
224
|
|
224
225
|
/**
|
225
226
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
226
227
|
*/
|
227
228
|
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
228
229
|
type ReactFragment = Iterable<ReactNode>;
|
229
|
-
type ReactNode =
|
230
|
+
type ReactNode = ReactElement | string | number | ReactFragment | ReactPortal | boolean | null | undefined;
|
230
231
|
|
231
232
|
//
|
232
233
|
// Top Level API
|
@@ -2279,6 +2280,7 @@ declare namespace React {
|
|
2279
2280
|
integrity?: string | undefined;
|
2280
2281
|
media?: string | undefined;
|
2281
2282
|
imageSrcSet?: string | undefined;
|
2283
|
+
imageSizes?: string | undefined;
|
2282
2284
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
2283
2285
|
rel?: string | undefined;
|
2284
2286
|
sizes?: string | undefined;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.8",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,7 +146,7 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
149
|
+
"typesPublisherContentHash": "002b01786e604df5d73e1d235c7f4c865f239e28443808d7cd21c63b88573cca",
|
150
150
|
"typeScriptVersion": "3.9",
|
151
151
|
"exports": {
|
152
152
|
".": {
|
@@ -154,6 +154,16 @@
|
|
154
154
|
"default": "./index.d.ts"
|
155
155
|
}
|
156
156
|
},
|
157
|
+
"./next": {
|
158
|
+
"types": {
|
159
|
+
"default": "./next.d.ts"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"./experimental": {
|
163
|
+
"types": {
|
164
|
+
"default": "./experimental.d.ts"
|
165
|
+
}
|
166
|
+
},
|
157
167
|
"./jsx-runtime": {
|
158
168
|
"types": {
|
159
169
|
"default": "./jsx-runtime.d.ts"
|