@types/react 19.2.8 → 19.2.9
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 +4 -4
- react/experimental.d.ts +30 -0
- react/package.json +2 -2
- react/ts5.0/canary.d.ts +4 -4
- react/ts5.0/experimental.d.ts +30 -0
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, 20 Jan 2026 14:07:27 GMT
|
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
|
13
13
|
|
|
14
14
|
# Credits
|
react/canary.d.ts
CHANGED
|
@@ -71,19 +71,19 @@ declare module "." {
|
|
|
71
71
|
/**
|
|
72
72
|
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
73
73
|
*/
|
|
74
|
-
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
74
|
+
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
75
75
|
/**
|
|
76
76
|
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
77
77
|
*/
|
|
78
|
-
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
78
|
+
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
79
79
|
/**
|
|
80
80
|
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
|
81
81
|
*/
|
|
82
|
-
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
82
|
+
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
83
83
|
/**
|
|
84
84
|
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
|
85
85
|
*/
|
|
86
|
-
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
86
|
+
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
87
87
|
ref?: Ref<ViewTransitionInstance> | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
react/experimental.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ declare module "." {
|
|
|
129
129
|
rangeStart?: number | undefined;
|
|
130
130
|
rangeEnd?: number | undefined;
|
|
131
131
|
}
|
|
132
|
+
export type GestureOptionsRequired = {
|
|
133
|
+
[P in keyof GestureOptions]-?: NonNullable<GestureOptions[P]>;
|
|
134
|
+
};
|
|
132
135
|
/** */
|
|
133
136
|
export function unstable_startGestureTransition(
|
|
134
137
|
provider: GestureProvider,
|
|
@@ -136,6 +139,33 @@ declare module "." {
|
|
|
136
139
|
options?: GestureOptions,
|
|
137
140
|
): () => void;
|
|
138
141
|
|
|
142
|
+
interface ViewTransitionProps {
|
|
143
|
+
onGestureEnter?: (
|
|
144
|
+
timeline: GestureProvider,
|
|
145
|
+
options: GestureOptionsRequired,
|
|
146
|
+
instance: ViewTransitionInstance,
|
|
147
|
+
types: Array<string>,
|
|
148
|
+
) => void | (() => void);
|
|
149
|
+
onGestureExit?: (
|
|
150
|
+
timeline: GestureProvider,
|
|
151
|
+
options: GestureOptionsRequired,
|
|
152
|
+
instance: ViewTransitionInstance,
|
|
153
|
+
types: Array<string>,
|
|
154
|
+
) => void | (() => void);
|
|
155
|
+
onGestureShare?: (
|
|
156
|
+
timeline: GestureProvider,
|
|
157
|
+
options: GestureOptionsRequired,
|
|
158
|
+
instance: ViewTransitionInstance,
|
|
159
|
+
types: Array<string>,
|
|
160
|
+
) => void | (() => void);
|
|
161
|
+
onGestureUpdate?: (
|
|
162
|
+
timeline: GestureProvider,
|
|
163
|
+
options: GestureOptionsRequired,
|
|
164
|
+
instance: ViewTransitionInstance,
|
|
165
|
+
types: Array<string>,
|
|
166
|
+
) => void | (() => void);
|
|
167
|
+
}
|
|
168
|
+
|
|
139
169
|
// @enableSrcObject
|
|
140
170
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
|
141
171
|
srcObject: Blob;
|
react/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/react",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.9",
|
|
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.2.2"
|
|
206
206
|
},
|
|
207
207
|
"peerDependencies": {},
|
|
208
|
-
"typesPublisherContentHash": "
|
|
208
|
+
"typesPublisherContentHash": "0494f33a7194f3d93b18f5c5194b5aa3b32b8efc3058b7a50a9b25b1639c19d3",
|
|
209
209
|
"typeScriptVersion": "5.2"
|
|
210
210
|
}
|
react/ts5.0/canary.d.ts
CHANGED
|
@@ -71,19 +71,19 @@ declare module "." {
|
|
|
71
71
|
/**
|
|
72
72
|
* The `<ViewTransition>` or its parent Component is mounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
73
73
|
*/
|
|
74
|
-
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
74
|
+
onEnter?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
75
75
|
/**
|
|
76
76
|
* The `<ViewTransition>` or its parent Component is unmounted and there's no other `<ViewTransition>` with the same name being deleted.
|
|
77
77
|
*/
|
|
78
|
-
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
78
|
+
onExit?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
79
79
|
/**
|
|
80
80
|
* This `<ViewTransition>` is being mounted and another `<ViewTransition>` instance with the same name is being unmounted elsewhere.
|
|
81
81
|
*/
|
|
82
|
-
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
82
|
+
onShare?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
83
83
|
/**
|
|
84
84
|
* The content of `<ViewTransition>` has changed either due to DOM mutations or because an inner child `<ViewTransition>` has resized.
|
|
85
85
|
*/
|
|
86
|
-
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void;
|
|
86
|
+
onUpdate?: (instance: ViewTransitionInstance, types: Array<string>) => void | (() => void);
|
|
87
87
|
ref?: Ref<ViewTransitionInstance> | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Combined with {@link className} if this `<ViewTransition>` is being mounted and another instance with the same name is being unmounted elsewhere.
|
react/ts5.0/experimental.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ declare module "." {
|
|
|
129
129
|
rangeStart?: number | undefined;
|
|
130
130
|
rangeEnd?: number | undefined;
|
|
131
131
|
}
|
|
132
|
+
export type GestureOptionsRequired = {
|
|
133
|
+
[P in keyof GestureOptions]-?: NonNullable<GestureOptions[P]>;
|
|
134
|
+
};
|
|
132
135
|
/** */
|
|
133
136
|
export function unstable_startGestureTransition(
|
|
134
137
|
provider: GestureProvider,
|
|
@@ -136,6 +139,33 @@ declare module "." {
|
|
|
136
139
|
options?: GestureOptions,
|
|
137
140
|
): () => void;
|
|
138
141
|
|
|
142
|
+
interface ViewTransitionProps {
|
|
143
|
+
onGestureEnter?: (
|
|
144
|
+
timeline: GestureProvider,
|
|
145
|
+
options: GestureOptionsRequired,
|
|
146
|
+
instance: ViewTransitionInstance,
|
|
147
|
+
types: Array<string>,
|
|
148
|
+
) => void | (() => void);
|
|
149
|
+
onGestureExit?: (
|
|
150
|
+
timeline: GestureProvider,
|
|
151
|
+
options: GestureOptionsRequired,
|
|
152
|
+
instance: ViewTransitionInstance,
|
|
153
|
+
types: Array<string>,
|
|
154
|
+
) => void | (() => void);
|
|
155
|
+
onGestureShare?: (
|
|
156
|
+
timeline: GestureProvider,
|
|
157
|
+
options: GestureOptionsRequired,
|
|
158
|
+
instance: ViewTransitionInstance,
|
|
159
|
+
types: Array<string>,
|
|
160
|
+
) => void | (() => void);
|
|
161
|
+
onGestureUpdate?: (
|
|
162
|
+
timeline: GestureProvider,
|
|
163
|
+
options: GestureOptionsRequired,
|
|
164
|
+
instance: ViewTransitionInstance,
|
|
165
|
+
types: Array<string>,
|
|
166
|
+
) => void | (() => void);
|
|
167
|
+
}
|
|
168
|
+
|
|
139
169
|
// @enableSrcObject
|
|
140
170
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_IMG_SRC_TYPES {
|
|
141
171
|
srcObject: Blob;
|