@types/react 19.2.6 → 19.2.7
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/index.d.ts +25 -1
- react/package.json +2 -2
- react/ts5.0/index.d.ts +25 -1
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, 24 Nov 2025 09:38:12 GMT
|
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
|
13
13
|
|
|
14
14
|
# Credits
|
react/index.d.ts
CHANGED
|
@@ -1926,7 +1926,31 @@ declare namespace React {
|
|
|
1926
1926
|
reducer: (state: State, action: Action) => State,
|
|
1927
1927
|
): [State, (action: Action) => void];
|
|
1928
1928
|
|
|
1929
|
-
|
|
1929
|
+
interface UntrackedReactPromise<T> extends PromiseLike<T> {
|
|
1930
|
+
status?: void;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
export interface PendingReactPromise<T> extends PromiseLike<T> {
|
|
1934
|
+
status: "pending";
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export interface FulfilledReactPromise<T> extends PromiseLike<T> {
|
|
1938
|
+
status: "fulfilled";
|
|
1939
|
+
value: T;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
export interface RejectedReactPromise<T> extends PromiseLike<T> {
|
|
1943
|
+
status: "rejected";
|
|
1944
|
+
reason: unknown;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
export type ReactPromise<T> =
|
|
1948
|
+
| UntrackedReactPromise<T>
|
|
1949
|
+
| PendingReactPromise<T>
|
|
1950
|
+
| FulfilledReactPromise<T>
|
|
1951
|
+
| RejectedReactPromise<T>;
|
|
1952
|
+
|
|
1953
|
+
export type Usable<T> = ReactPromise<T> | Context<T>;
|
|
1930
1954
|
|
|
1931
1955
|
export function use<T>(usable: Usable<T>): T;
|
|
1932
1956
|
|
react/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/react",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.7",
|
|
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": "fd69ea47f2fc8e9d139677eb6bcca67ee4b3ac279ce5ceb2e6e23ce8403c356d",
|
|
209
209
|
"typeScriptVersion": "5.2"
|
|
210
210
|
}
|
react/ts5.0/index.d.ts
CHANGED
|
@@ -1925,7 +1925,31 @@ declare namespace React {
|
|
|
1925
1925
|
reducer: (state: State, action: Action) => State,
|
|
1926
1926
|
): [State, (action: Action) => void];
|
|
1927
1927
|
|
|
1928
|
-
|
|
1928
|
+
interface UntrackedReactPromise<T> extends PromiseLike<T> {
|
|
1929
|
+
status?: void;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export interface PendingReactPromise<T> extends PromiseLike<T> {
|
|
1933
|
+
status: "pending";
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
export interface FulfilledReactPromise<T> extends PromiseLike<T> {
|
|
1937
|
+
status: "fulfilled";
|
|
1938
|
+
value: T;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
export interface RejectedReactPromise<T> extends PromiseLike<T> {
|
|
1942
|
+
status: "rejected";
|
|
1943
|
+
reason: unknown;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
export type ReactPromise<T> =
|
|
1947
|
+
| UntrackedReactPromise<T>
|
|
1948
|
+
| PendingReactPromise<T>
|
|
1949
|
+
| FulfilledReactPromise<T>
|
|
1950
|
+
| RejectedReactPromise<T>;
|
|
1951
|
+
|
|
1952
|
+
export type Usable<T> = ReactPromise<T> | Context<T>;
|
|
1929
1953
|
|
|
1930
1954
|
export function use<T>(usable: Usable<T>): T;
|
|
1931
1955
|
|