@types/react 19.0.1 → 19.0.3
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 +2 -3
- react/package.json +2 -2
- react/ts5.0/index.d.ts +0 -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, 06 Jan 2025 11:32:24 GMT
|
12
12
|
* Dependencies: [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/index.d.ts
CHANGED
@@ -132,7 +132,7 @@ declare namespace React {
|
|
132
132
|
type JSXElementConstructor<P> =
|
133
133
|
| ((
|
134
134
|
props: P,
|
135
|
-
) => ReactNode)
|
135
|
+
) => ReactNode | Promise<ReactNode>)
|
136
136
|
// constructor signature must match React.Component
|
137
137
|
| (new(props: P) => Component<any, any>);
|
138
138
|
|
@@ -1036,7 +1036,7 @@ declare namespace React {
|
|
1036
1036
|
* ```
|
1037
1037
|
*/
|
1038
1038
|
interface FunctionComponent<P = {}> {
|
1039
|
-
(props: P): ReactNode
|
1039
|
+
(props: P): ReactNode | Promise<ReactNode>;
|
1040
1040
|
/**
|
1041
1041
|
* Ignored by React.
|
1042
1042
|
* @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release.
|
@@ -1864,7 +1864,6 @@ declare namespace React {
|
|
1864
1864
|
* @param callback A function which causes state updates that can be deferred.
|
1865
1865
|
*/
|
1866
1866
|
export function startTransition(scope: TransitionFunction): void;
|
1867
|
-
export function startTransition(scope: TransitionFunction): void;
|
1868
1867
|
|
1869
1868
|
/**
|
1870
1869
|
* Wrap any code rendering and triggering updates to your components into `act()` calls.
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "19.0.
|
3
|
+
"version": "19.0.3",
|
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": "2f0601d95c44f743c82ca0f3e00e2e2127fc9780ed01373fbe3ae6d149a9fa91",
|
209
209
|
"typeScriptVersion": "5.0"
|
210
210
|
}
|
react/ts5.0/index.d.ts
CHANGED
@@ -1863,7 +1863,6 @@ declare namespace React {
|
|
1863
1863
|
* @param callback A function which causes state updates that can be deferred.
|
1864
1864
|
*/
|
1865
1865
|
export function startTransition(scope: TransitionFunction): void;
|
1866
|
-
export function startTransition(scope: TransitionFunction): void;
|
1867
1866
|
|
1868
1867
|
/**
|
1869
1868
|
* Wrap any code rendering and triggering updates to your components into `act()` calls.
|