@types/react 19.1.11 → 19.1.13
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/canary.d.ts +22 -0
- react/experimental.d.ts +0 -20
- react/index.d.ts +0 -2
- react/package.json +2 -2
- react/ts5.0/canary.d.ts +22 -0
- react/ts5.0/experimental.d.ts +0 -20
- react/ts5.0/index.d.ts +0 -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: Fri,
|
11
|
+
* Last updated: Fri, 12 Sep 2025 18:37:07 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/canary.d.ts
CHANGED
@@ -35,4 +35,26 @@ declare module "." {
|
|
35
35
|
|
36
36
|
export interface CacheSignal {}
|
37
37
|
export function cacheSignal(): null | CacheSignal;
|
38
|
+
|
39
|
+
// @enableActivity
|
40
|
+
export interface ActivityProps {
|
41
|
+
/**
|
42
|
+
* @default "visible"
|
43
|
+
*/
|
44
|
+
mode?:
|
45
|
+
| "hidden"
|
46
|
+
| "visible"
|
47
|
+
| undefined;
|
48
|
+
/**
|
49
|
+
* A name for this Activity boundary for instrumentation purposes.
|
50
|
+
* The name will help identify this boundary in React DevTools.
|
51
|
+
*/
|
52
|
+
name?: string | undefined;
|
53
|
+
children: ReactNode;
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
|
58
|
+
*/
|
59
|
+
export const Activity: ExoticComponent<ActivityProps>;
|
38
60
|
}
|
react/experimental.d.ts
CHANGED
@@ -217,26 +217,6 @@ declare module "." {
|
|
217
217
|
ref?: Ref<FragmentInstance> | undefined;
|
218
218
|
}
|
219
219
|
|
220
|
-
// @enableActivity
|
221
|
-
export interface ActivityProps {
|
222
|
-
/**
|
223
|
-
* @default "visible"
|
224
|
-
*/
|
225
|
-
mode?:
|
226
|
-
| "hidden"
|
227
|
-
| "visible"
|
228
|
-
| undefined;
|
229
|
-
/**
|
230
|
-
* A name for this Activity boundary for instrumentation purposes.
|
231
|
-
* The name will help identify this boundary in React DevTools.
|
232
|
-
*/
|
233
|
-
name?: string | undefined;
|
234
|
-
children: ReactNode;
|
235
|
-
}
|
236
|
-
|
237
|
-
/** */
|
238
|
-
export const unstable_Activity: ExoticComponent<ActivityProps>;
|
239
|
-
|
240
220
|
// @enableSrcObject
|
241
221
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
242
222
|
srcObject: Blob;
|
react/index.d.ts
CHANGED
@@ -1779,8 +1779,6 @@ declare namespace React {
|
|
1779
1779
|
* `useImperativeHandle` customizes the instance value that is exposed to parent components when using
|
1780
1780
|
* `ref`. As always, imperative code using refs should be avoided in most cases.
|
1781
1781
|
*
|
1782
|
-
* `useImperativeHandle` should be used with `React.forwardRef`.
|
1783
|
-
*
|
1784
1782
|
* @version 16.8.0
|
1785
1783
|
* @see {@link https://react.dev/reference/react/useImperativeHandle}
|
1786
1784
|
*/
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.1.
|
3
|
+
"version": "19.1.13",
|
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": "ddb7945c2f416044519a6a1e2692fb96d34d1c4a4a5103d454254bf3818a8478",
|
209
209
|
"typeScriptVersion": "5.2"
|
210
210
|
}
|
react/ts5.0/canary.d.ts
CHANGED
@@ -35,4 +35,26 @@ declare module "." {
|
|
35
35
|
|
36
36
|
export interface CacheSignal {}
|
37
37
|
export function cacheSignal(): null | CacheSignal;
|
38
|
+
|
39
|
+
// @enableActivity
|
40
|
+
export interface ActivityProps {
|
41
|
+
/**
|
42
|
+
* @default "visible"
|
43
|
+
*/
|
44
|
+
mode?:
|
45
|
+
| "hidden"
|
46
|
+
| "visible"
|
47
|
+
| undefined;
|
48
|
+
/**
|
49
|
+
* A name for this Activity boundary for instrumentation purposes.
|
50
|
+
* The name will help identify this boundary in React DevTools.
|
51
|
+
*/
|
52
|
+
name?: string | undefined;
|
53
|
+
children: ReactNode;
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @see {@link https://react.dev/reference/react/Activity `<Activity>` documentation}
|
58
|
+
*/
|
59
|
+
export const Activity: ExoticComponent<ActivityProps>;
|
38
60
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -217,26 +217,6 @@ declare module "." {
|
|
217
217
|
ref?: Ref<FragmentInstance> | undefined;
|
218
218
|
}
|
219
219
|
|
220
|
-
// @enableActivity
|
221
|
-
export interface ActivityProps {
|
222
|
-
/**
|
223
|
-
* @default "visible"
|
224
|
-
*/
|
225
|
-
mode?:
|
226
|
-
| "hidden"
|
227
|
-
| "visible"
|
228
|
-
| undefined;
|
229
|
-
/**
|
230
|
-
* A name for this Activity boundary for instrumentation purposes.
|
231
|
-
* The name will help identify this boundary in React DevTools.
|
232
|
-
*/
|
233
|
-
name?: string | undefined;
|
234
|
-
children: ReactNode;
|
235
|
-
}
|
236
|
-
|
237
|
-
/** */
|
238
|
-
export const unstable_Activity: ExoticComponent<ActivityProps>;
|
239
|
-
|
240
220
|
// @enableSrcObject
|
241
221
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
242
222
|
srcObject: Blob;
|
react/ts5.0/index.d.ts
CHANGED
@@ -1777,8 +1777,6 @@ declare namespace React {
|
|
1777
1777
|
* `useImperativeHandle` customizes the instance value that is exposed to parent components when using
|
1778
1778
|
* `ref`. As always, imperative code using refs should be avoided in most cases.
|
1779
1779
|
*
|
1780
|
-
* `useImperativeHandle` should be used with `React.forwardRef`.
|
1781
|
-
*
|
1782
1780
|
* @version 16.8.0
|
1783
1781
|
* @see {@link https://react.dev/reference/react/useImperativeHandle}
|
1784
1782
|
*/
|