@types/react 19.0.8 → 19.0.10
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 +7 -0
- react/experimental.d.ts +14 -5
- react/package.json +2 -2
- react/ts5.0/canary.d.ts +7 -0
- react/ts5.0/experimental.d.ts +14 -5
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: Mon, 17 Feb 2025 09:33:55 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/canary.d.ts
CHANGED
@@ -32,4 +32,11 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
32
32
|
|
33
33
|
declare module "." {
|
34
34
|
export function unstable_useCacheRefresh(): () => void;
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Warning: Only available in development builds.
|
38
|
+
*
|
39
|
+
* @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
|
40
|
+
*/
|
41
|
+
function captureOwnerStack(): string | null;
|
35
42
|
}
|
react/experimental.d.ts
CHANGED
@@ -109,11 +109,6 @@ declare module "." {
|
|
109
109
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
110
110
|
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
111
111
|
|
112
|
-
/**
|
113
|
-
* Warning: Only available in development builds.
|
114
|
-
*/
|
115
|
-
function captureOwnerStack(): string | null;
|
116
|
-
|
117
112
|
type Reference = object;
|
118
113
|
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
119
114
|
function experimental_taintUniqueValue(
|
@@ -200,4 +195,18 @@ declare module "." {
|
|
200
195
|
* @see {@link https://github.com/facebook/react/pull/31975}
|
201
196
|
*/
|
202
197
|
export const unstable_ViewTransition: ExoticComponent<ViewTransitionProps>;
|
198
|
+
|
199
|
+
// Implemented by the specific renderer e.g. `react-dom`.
|
200
|
+
// Keep in mind that augmented interfaces merge their JSDoc so if you put
|
201
|
+
// JSDoc here and in the renderer, the IDE will display both.
|
202
|
+
export interface GestureProvider {}
|
203
|
+
|
204
|
+
export type StartGesture = (gestureProvider: GestureProvider) => () => void;
|
205
|
+
|
206
|
+
/** */
|
207
|
+
export function unstable_useSwipeTransition<Value>(
|
208
|
+
previous: Value,
|
209
|
+
current: Value,
|
210
|
+
next: Value,
|
211
|
+
): [value: Value, startGesture: StartGesture];
|
203
212
|
}
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.0.
|
3
|
+
"version": "19.0.10",
|
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": "866870a471a9f75a7bad0d802190bda33dc498e45eed9f500e45e4a979789f47",
|
209
209
|
"typeScriptVersion": "5.0"
|
210
210
|
}
|
react/ts5.0/canary.d.ts
CHANGED
@@ -32,4 +32,11 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
|
32
32
|
|
33
33
|
declare module "." {
|
34
34
|
export function unstable_useCacheRefresh(): () => void;
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Warning: Only available in development builds.
|
38
|
+
*
|
39
|
+
* @see {@link https://react.dev/reference/react/captureOwnerStack Reference docs}
|
40
|
+
*/
|
41
|
+
function captureOwnerStack(): string | null;
|
35
42
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -109,11 +109,6 @@ declare module "." {
|
|
109
109
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
110
110
|
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
111
111
|
|
112
|
-
/**
|
113
|
-
* Warning: Only available in development builds.
|
114
|
-
*/
|
115
|
-
function captureOwnerStack(): string | null;
|
116
|
-
|
117
112
|
type Reference = object;
|
118
113
|
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
119
114
|
function experimental_taintUniqueValue(
|
@@ -200,4 +195,18 @@ declare module "." {
|
|
200
195
|
* @see {@link https://github.com/facebook/react/pull/31975}
|
201
196
|
*/
|
202
197
|
export const unstable_ViewTransition: ExoticComponent<ViewTransitionProps>;
|
198
|
+
|
199
|
+
// Implemented by the specific renderer e.g. `react-dom`.
|
200
|
+
// Keep in mind that augmented interfaces merge their JSDoc so if you put
|
201
|
+
// JSDoc here and in the renderer, the IDE will display both.
|
202
|
+
export interface GestureProvider {}
|
203
|
+
|
204
|
+
export type StartGesture = (gestureProvider: GestureProvider) => () => void;
|
205
|
+
|
206
|
+
/** */
|
207
|
+
export function unstable_useSwipeTransition<Value>(
|
208
|
+
previous: Value,
|
209
|
+
current: Value,
|
210
|
+
next: Value,
|
211
|
+
): [value: Value, startGesture: StartGesture];
|
203
212
|
}
|