@types/react 18.2.63 → 18.2.65
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/experimental.d.ts +15 -3
- react/index.d.ts +1 -0
- react/package.json +3 -3
- react/ts5.0/experimental.d.ts +15 -3
- react/ts5.0/index.d.ts +1 -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: Tue,
|
11
|
+
* Last updated: Tue, 12 Mar 2024 00:22:44 GMT
|
12
12
|
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/experimental.d.ts
CHANGED
@@ -42,10 +42,22 @@ declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
42
42
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
43
43
|
|
44
44
|
declare module "." {
|
45
|
-
|
46
|
-
|
45
|
+
/**
|
46
|
+
* @internal Use `Awaited<ReactNode>` instead
|
47
|
+
*/
|
48
|
+
// Helper type to enable `Awaited<ReactNode>`.
|
49
|
+
// Must be a copy of the non-thenables of `ReactNode`.
|
50
|
+
type AwaitedReactNode =
|
51
|
+
| ReactElement
|
52
|
+
| string
|
53
|
+
| number
|
54
|
+
| Iterable<AwaitedReactNode>
|
55
|
+
| ReactPortal
|
56
|
+
| boolean
|
57
|
+
| null
|
58
|
+
| undefined;
|
47
59
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
48
|
-
promises:
|
60
|
+
promises: Promise<AwaitedReactNode>;
|
49
61
|
}
|
50
62
|
|
51
63
|
export interface SuspenseProps {
|
react/index.d.ts
CHANGED
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.65",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -206,6 +206,6 @@
|
|
206
206
|
"@types/scheduler": "*",
|
207
207
|
"csstype": "^3.0.2"
|
208
208
|
},
|
209
|
-
"typesPublisherContentHash": "
|
210
|
-
"typeScriptVersion": "4.
|
209
|
+
"typesPublisherContentHash": "a8477c63620b49fa941ad9ef8541f4f8138d84d70ce7e2268d9f46a7afc0dbaa",
|
210
|
+
"typeScriptVersion": "4.7"
|
211
211
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -42,10 +42,22 @@ declare const UNDEFINED_VOID_ONLY: unique symbol;
|
|
42
42
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
43
43
|
|
44
44
|
declare module "." {
|
45
|
-
|
46
|
-
|
45
|
+
/**
|
46
|
+
* @internal Use `Awaited<ReactNode>` instead
|
47
|
+
*/
|
48
|
+
// Helper type to enable `Awaited<ReactNode>`.
|
49
|
+
// Must be a copy of the non-thenables of `ReactNode`.
|
50
|
+
type AwaitedReactNode =
|
51
|
+
| ReactElement
|
52
|
+
| string
|
53
|
+
| number
|
54
|
+
| Iterable<AwaitedReactNode>
|
55
|
+
| ReactPortal
|
56
|
+
| boolean
|
57
|
+
| null
|
58
|
+
| undefined;
|
47
59
|
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
48
|
-
promises:
|
60
|
+
promises: Promise<AwaitedReactNode>;
|
49
61
|
}
|
50
62
|
|
51
63
|
export interface SuspenseProps {
|