@types/react 19.1.1 → 19.1.3
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/experimental.d.ts +9 -0
- react/global.d.ts +4 -0
- react/index.d.ts +19 -4
- react/package.json +2 -2
- react/ts5.0/experimental.d.ts +9 -0
- react/ts5.0/global.d.ts +4 -0
- react/ts5.0/index.d.ts +19 -4
- react/ts5.0/v18/index.d.ts +3 -2
- react/ts5.0/v18/ts5.0/index.d.ts +3 -2
react/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
|
|
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, 06 May 2025 02:14:23 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/experimental.d.ts
CHANGED
@@ -229,4 +229,13 @@ declare module "." {
|
|
229
229
|
|
230
230
|
/** */
|
231
231
|
export const unstable_Activity: ExoticComponent<ActivityProps>;
|
232
|
+
|
233
|
+
// @enableSrcObject
|
234
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
235
|
+
srcObject: Blob;
|
236
|
+
}
|
237
|
+
|
238
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
|
239
|
+
srcObject: Blob | MediaSource | MediaStream;
|
240
|
+
}
|
232
241
|
}
|
react/global.d.ts
CHANGED
react/index.d.ts
CHANGED
@@ -2253,8 +2253,6 @@ declare namespace React {
|
|
2253
2253
|
onProgressCapture?: ReactEventHandler<T> | undefined;
|
2254
2254
|
onRateChange?: ReactEventHandler<T> | undefined;
|
2255
2255
|
onRateChangeCapture?: ReactEventHandler<T> | undefined;
|
2256
|
-
onResize?: ReactEventHandler<T> | undefined;
|
2257
|
-
onResizeCapture?: ReactEventHandler<T> | undefined;
|
2258
2256
|
onSeeked?: ReactEventHandler<T> | undefined;
|
2259
2257
|
onSeekedCapture?: ReactEventHandler<T> | undefined;
|
2260
2258
|
onSeeking?: ReactEventHandler<T> | undefined;
|
@@ -3060,6 +3058,8 @@ declare namespace React {
|
|
3060
3058
|
width?: number | string | undefined;
|
3061
3059
|
}
|
3062
3060
|
|
3061
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {}
|
3062
|
+
|
3063
3063
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
3064
3064
|
alt?: string | undefined;
|
3065
3065
|
crossOrigin?: CrossOrigin;
|
@@ -3069,7 +3069,12 @@ declare namespace React {
|
|
3069
3069
|
loading?: "eager" | "lazy" | undefined;
|
3070
3070
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
3071
3071
|
sizes?: string | undefined;
|
3072
|
-
src?:
|
3072
|
+
src?:
|
3073
|
+
| string
|
3074
|
+
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES[
|
3075
|
+
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES
|
3076
|
+
]
|
3077
|
+
| undefined;
|
3073
3078
|
srcSet?: string | undefined;
|
3074
3079
|
useMap?: string | undefined;
|
3075
3080
|
width?: number | string | undefined;
|
@@ -3253,6 +3258,8 @@ declare namespace React {
|
|
3253
3258
|
type?: string | undefined;
|
3254
3259
|
}
|
3255
3260
|
|
3261
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {}
|
3262
|
+
|
3256
3263
|
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
3257
3264
|
autoPlay?: boolean | undefined;
|
3258
3265
|
controls?: boolean | undefined;
|
@@ -3263,7 +3270,12 @@ declare namespace React {
|
|
3263
3270
|
muted?: boolean | undefined;
|
3264
3271
|
playsInline?: boolean | undefined;
|
3265
3272
|
preload?: string | undefined;
|
3266
|
-
src?:
|
3273
|
+
src?:
|
3274
|
+
| string
|
3275
|
+
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES[
|
3276
|
+
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES
|
3277
|
+
]
|
3278
|
+
| undefined;
|
3267
3279
|
}
|
3268
3280
|
|
3269
3281
|
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -3454,6 +3466,9 @@ declare namespace React {
|
|
3454
3466
|
width?: number | string | undefined;
|
3455
3467
|
disablePictureInPicture?: boolean | undefined;
|
3456
3468
|
disableRemotePlayback?: boolean | undefined;
|
3469
|
+
|
3470
|
+
onResize?: ReactEventHandler<T> | undefined;
|
3471
|
+
onResizeCapture?: ReactEventHandler<T> | undefined;
|
3457
3472
|
}
|
3458
3473
|
|
3459
3474
|
// this list is "complete" in that it contains every SVG attribute
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.1.
|
3
|
+
"version": "19.1.3",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -205,6 +205,6 @@
|
|
205
205
|
"csstype": "^3.0.2"
|
206
206
|
},
|
207
207
|
"peerDependencies": {},
|
208
|
-
"typesPublisherContentHash": "
|
208
|
+
"typesPublisherContentHash": "f88213f6b3d5f61426ff23a289a80603eef0650414c072e2f9e5bc47c8932a63",
|
209
209
|
"typeScriptVersion": "5.1"
|
210
210
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -229,4 +229,13 @@ declare module "." {
|
|
229
229
|
|
230
230
|
/** */
|
231
231
|
export const unstable_Activity: ExoticComponent<ActivityProps>;
|
232
|
+
|
233
|
+
// @enableSrcObject
|
234
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
235
|
+
srcObject: Blob;
|
236
|
+
}
|
237
|
+
|
238
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {
|
239
|
+
srcObject: Blob | MediaSource | MediaStream;
|
240
|
+
}
|
232
241
|
}
|
react/ts5.0/global.d.ts
CHANGED
react/ts5.0/index.d.ts
CHANGED
@@ -2252,8 +2252,6 @@ declare namespace React {
|
|
2252
2252
|
onProgressCapture?: ReactEventHandler<T> | undefined;
|
2253
2253
|
onRateChange?: ReactEventHandler<T> | undefined;
|
2254
2254
|
onRateChangeCapture?: ReactEventHandler<T> | undefined;
|
2255
|
-
onResize?: ReactEventHandler<T> | undefined;
|
2256
|
-
onResizeCapture?: ReactEventHandler<T> | undefined;
|
2257
2255
|
onSeeked?: ReactEventHandler<T> | undefined;
|
2258
2256
|
onSeekedCapture?: ReactEventHandler<T> | undefined;
|
2259
2257
|
onSeeking?: ReactEventHandler<T> | undefined;
|
@@ -3059,6 +3057,8 @@ declare namespace React {
|
|
3059
3057
|
width?: number | string | undefined;
|
3060
3058
|
}
|
3061
3059
|
|
3060
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {}
|
3061
|
+
|
3062
3062
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
3063
3063
|
alt?: string | undefined;
|
3064
3064
|
crossOrigin?: CrossOrigin;
|
@@ -3068,7 +3068,12 @@ declare namespace React {
|
|
3068
3068
|
loading?: "eager" | "lazy" | undefined;
|
3069
3069
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
3070
3070
|
sizes?: string | undefined;
|
3071
|
-
src?:
|
3071
|
+
src?:
|
3072
|
+
| string
|
3073
|
+
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES[
|
3074
|
+
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES
|
3075
|
+
]
|
3076
|
+
| undefined;
|
3072
3077
|
srcSet?: string | undefined;
|
3073
3078
|
useMap?: string | undefined;
|
3074
3079
|
width?: number | string | undefined;
|
@@ -3252,6 +3257,8 @@ declare namespace React {
|
|
3252
3257
|
type?: string | undefined;
|
3253
3258
|
}
|
3254
3259
|
|
3260
|
+
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES {}
|
3261
|
+
|
3255
3262
|
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
3256
3263
|
autoPlay?: boolean | undefined;
|
3257
3264
|
controls?: boolean | undefined;
|
@@ -3262,7 +3269,12 @@ declare namespace React {
|
|
3262
3269
|
muted?: boolean | undefined;
|
3263
3270
|
playsInline?: boolean | undefined;
|
3264
3271
|
preload?: string | undefined;
|
3265
|
-
src?:
|
3272
|
+
src?:
|
3273
|
+
| string
|
3274
|
+
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES[
|
3275
|
+
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_MEDIA_SRC_TYPES
|
3276
|
+
]
|
3277
|
+
| undefined;
|
3266
3278
|
}
|
3267
3279
|
|
3268
3280
|
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -3453,6 +3465,9 @@ declare namespace React {
|
|
3453
3465
|
width?: number | string | undefined;
|
3454
3466
|
disablePictureInPicture?: boolean | undefined;
|
3455
3467
|
disableRemotePlayback?: boolean | undefined;
|
3468
|
+
|
3469
|
+
onResize?: ReactEventHandler<T> | undefined;
|
3470
|
+
onResizeCapture?: ReactEventHandler<T> | undefined;
|
3456
3471
|
}
|
3457
3472
|
|
3458
3473
|
// this list is "complete" in that it contains every SVG attribute
|
react/ts5.0/v18/index.d.ts
CHANGED
@@ -2472,8 +2472,6 @@ declare namespace React {
|
|
2472
2472
|
onProgressCapture?: ReactEventHandler<T> | undefined;
|
2473
2473
|
onRateChange?: ReactEventHandler<T> | undefined;
|
2474
2474
|
onRateChangeCapture?: ReactEventHandler<T> | undefined;
|
2475
|
-
onResize?: ReactEventHandler<T> | undefined;
|
2476
|
-
onResizeCapture?: ReactEventHandler<T> | undefined;
|
2477
2475
|
onSeeked?: ReactEventHandler<T> | undefined;
|
2478
2476
|
onSeekedCapture?: ReactEventHandler<T> | undefined;
|
2479
2477
|
onSeeking?: ReactEventHandler<T> | undefined;
|
@@ -3633,6 +3631,9 @@ declare namespace React {
|
|
3633
3631
|
width?: number | string | undefined;
|
3634
3632
|
disablePictureInPicture?: boolean | undefined;
|
3635
3633
|
disableRemotePlayback?: boolean | undefined;
|
3634
|
+
|
3635
|
+
onResize?: ReactEventHandler<T> | undefined;
|
3636
|
+
onResizeCapture?: ReactEventHandler<T> | undefined;
|
3636
3637
|
}
|
3637
3638
|
|
3638
3639
|
// this list is "complete" in that it contains every SVG attribute
|
react/ts5.0/v18/ts5.0/index.d.ts
CHANGED
@@ -2473,8 +2473,6 @@ declare namespace React {
|
|
2473
2473
|
onProgressCapture?: ReactEventHandler<T> | undefined;
|
2474
2474
|
onRateChange?: ReactEventHandler<T> | undefined;
|
2475
2475
|
onRateChangeCapture?: ReactEventHandler<T> | undefined;
|
2476
|
-
onResize?: ReactEventHandler<T> | undefined;
|
2477
|
-
onResizeCapture?: ReactEventHandler<T> | undefined;
|
2478
2476
|
onSeeked?: ReactEventHandler<T> | undefined;
|
2479
2477
|
onSeekedCapture?: ReactEventHandler<T> | undefined;
|
2480
2478
|
onSeeking?: ReactEventHandler<T> | undefined;
|
@@ -3634,6 +3632,9 @@ declare namespace React {
|
|
3634
3632
|
width?: number | string | undefined;
|
3635
3633
|
disablePictureInPicture?: boolean | undefined;
|
3636
3634
|
disableRemotePlayback?: boolean | undefined;
|
3635
|
+
|
3636
|
+
onResize?: ReactEventHandler<T> | undefined;
|
3637
|
+
onResizeCapture?: ReactEventHandler<T> | undefined;
|
3637
3638
|
}
|
3638
3639
|
|
3639
3640
|
// this list is "complete" in that it contains every SVG attribute
|