@types/react 19.1.12 → 19.1.14
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 +28 -0
- react/experimental.d.ts +0 -23
- react/package.json +2 -2
- react/ts5.0/canary.d.ts +28 -0
- react/ts5.0/experimental.d.ts +0 -23
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: Fri, 26 Sep 2025 17:34:03 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/canary.d.ts
CHANGED
@@ -35,4 +35,32 @@ 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>;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
|
63
|
+
*/
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
65
|
+
export function useEffectEvent<T extends Function>(callback: T): T;
|
38
66
|
}
|
react/experimental.d.ts
CHANGED
@@ -108,9 +108,6 @@ declare module "." {
|
|
108
108
|
*/
|
109
109
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
110
110
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
112
|
-
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
113
|
-
|
114
111
|
type Reference = object;
|
115
112
|
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
116
113
|
function experimental_taintUniqueValue(
|
@@ -217,26 +214,6 @@ declare module "." {
|
|
217
214
|
ref?: Ref<FragmentInstance> | undefined;
|
218
215
|
}
|
219
216
|
|
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
217
|
// @enableSrcObject
|
241
218
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
242
219
|
srcObject: Blob;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.1.
|
3
|
+
"version": "19.1.14",
|
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": "ab01caeb4b672552960a2a8d6e8ceda65a84578dcc38eed752dd4e716d45b44f",
|
209
209
|
"typeScriptVersion": "5.2"
|
210
210
|
}
|
react/ts5.0/canary.d.ts
CHANGED
@@ -35,4 +35,32 @@ 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>;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* @see {@link https://react.dev/reference/react/useEffectEvent `useEffectEvent()` documentation}
|
63
|
+
*/
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
65
|
+
export function useEffectEvent<T extends Function>(callback: T): T;
|
38
66
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -108,9 +108,6 @@ declare module "." {
|
|
108
108
|
*/
|
109
109
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
110
110
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
112
|
-
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
113
|
-
|
114
111
|
type Reference = object;
|
115
112
|
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
116
113
|
function experimental_taintUniqueValue(
|
@@ -217,26 +214,6 @@ declare module "." {
|
|
217
214
|
ref?: Ref<FragmentInstance> | undefined;
|
218
215
|
}
|
219
216
|
|
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
217
|
// @enableSrcObject
|
241
218
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
242
219
|
srcObject: Blob;
|